class PbpData { int? stepSec; Events? events; PbpData({ this.stepSec, this.events, }); factory PbpData.fromJson(Map json) => PbpData( stepSec: json["step_sec"], events: json["events"] == null ? null : Events.fromJson(json["events"]), ); } class Events { List? eDefault; Events({ this.eDefault, }); factory Events.fromJson(Map json) => Events( eDefault: json["default"] == null ? null : List.from(json["default"]!.map((x) => x?.toDouble())), ); }