mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-09 11:37:51 +08:00
@@ -31,23 +31,23 @@ class EpisodeItem {
|
||||
});
|
||||
|
||||
factory EpisodeItem.fromJson(Map<String, dynamic> json) => EpisodeItem(
|
||||
seasonId: json['season_id'] as int?,
|
||||
sectionId: json['section_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
attribute: json['attribute'] as int?,
|
||||
arc: json['arc'] == null
|
||||
? null
|
||||
: Arc.fromJson(json['arc'] as Map<String, dynamic>),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Part.fromJson(json['page'] as Map<String, dynamic>),
|
||||
bvid: json['bvid'] as String?,
|
||||
pages: (json['pages'] as List<dynamic>?)
|
||||
?.map((e) => Part.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
badge: json['badge'],
|
||||
);
|
||||
seasonId: json['season_id'] as int?,
|
||||
sectionId: json['section_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
attribute: json['attribute'] as int?,
|
||||
arc: json['arc'] == null
|
||||
? null
|
||||
: Arc.fromJson(json['arc'] as Map<String, dynamic>),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Part.fromJson(json['page'] as Map<String, dynamic>),
|
||||
bvid: json['bvid'] as String?,
|
||||
pages: (json['pages'] as List<dynamic>?)
|
||||
?.map((e) => Part.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
badge: json['badge'],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user