import 'package:PiliPlus/models_new/pgc/pgc_info_model/episode.dart'; class Section { List? episodes; Section({ this.episodes, }); factory Section.fromJson(Map json) => Section( episodes: (json['episodes'] as List?) ?.map((e) => EpisodeItem.fromJson(e as Map)) .toList(), ); }