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"] as List?) ?.map((e) => (e as num).toDouble()) .toList(), ); }