import 'package:PiliPlus/models_new/pgc/pgc_info_model/episode.dart'; class Section { int? attr; int? episodeId; List? episodeIds; List? episodes; int? id; String? title; int? type; int? type2; Section({ this.attr, this.episodeId, this.episodeIds, this.episodes, this.id, this.title, this.type, this.type2, }); factory Section.fromJson(Map json) => Section( attr: json['attr'] as int?, episodeId: json['episode_id'] as int?, episodeIds: json['episode_ids'] as List?, episodes: (json['episodes'] as List?) ?.map((e) => EpisodeItem.fromJson(e as Map)) .toList(), id: json['id'] as int?, title: json['title'] as String?, type: json['type'] as int?, type2: json['type2'] as int?, ); }