mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
29
lib/models_new/fav/fav_pgc/section.dart
Normal file
29
lib/models_new/fav/fav_pgc/section.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
class Section {
|
||||
int? sectionId;
|
||||
int? seasonId;
|
||||
int? limitGroup;
|
||||
int? watchPlatform;
|
||||
String? copyright;
|
||||
int? banAreaShow;
|
||||
List<int>? episodeIds;
|
||||
|
||||
Section({
|
||||
this.sectionId,
|
||||
this.seasonId,
|
||||
this.limitGroup,
|
||||
this.watchPlatform,
|
||||
this.copyright,
|
||||
this.banAreaShow,
|
||||
this.episodeIds,
|
||||
});
|
||||
|
||||
factory Section.fromJson(Map<String, dynamic> json) => Section(
|
||||
sectionId: json['section_id'] as int?,
|
||||
seasonId: json['season_id'] as int?,
|
||||
limitGroup: json['limit_group'] as int?,
|
||||
watchPlatform: json['watch_platform'] as int?,
|
||||
copyright: json['copyright'] as String?,
|
||||
banAreaShow: json['ban_area_show'] as int?,
|
||||
episodeIds: (json['episode_ids'] as List?)?.cast(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user