mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
16 lines
370 B
Dart
16 lines
370 B
Dart
import 'package:PiliPlus/models_new/pgc/pgc_info_model/episode.dart';
|
|
|
|
class Section {
|
|
List<EpisodeItem>? episodes;
|
|
|
|
Section({
|
|
this.episodes,
|
|
});
|
|
|
|
factory Section.fromJson(Map<String, dynamic> json) => Section(
|
|
episodes: (json['episodes'] as List<dynamic>?)
|
|
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
}
|