import 'pgc_rank_item_model.dart'; class Data { List? list; String? note; int? seasonType; Data({this.list, this.note, this.seasonType}); factory Data.fromJson(Map json) => Data( list: (json['list'] as List?) ?.map((e) => PgcRankItemModel.fromJson(e as Map)) .toList(), note: json['note'] as String?, seasonType: json['season_type'] as int?, ); Map toJson() => { 'list': list?.map((e) => e.toJson()).toList(), 'note': note, 'season_type': seasonType, }; }