Series Detail Screen
This commit is contained in:
@@ -13,6 +13,8 @@ class EpisodeItem {
|
||||
final String? showStatus;
|
||||
final bool? showCliffhanger;
|
||||
final String? posterPath;
|
||||
final int? showId;
|
||||
final String? downloadPath;
|
||||
|
||||
EpisodeItem({
|
||||
required this.id,
|
||||
@@ -27,6 +29,8 @@ class EpisodeItem {
|
||||
this.showStatus,
|
||||
this.showCliffhanger,
|
||||
this.posterPath,
|
||||
this.showId,
|
||||
this.downloadPath,
|
||||
});
|
||||
|
||||
factory EpisodeItem.fromJson(Map<String, dynamic> j) => EpisodeItem(
|
||||
@@ -42,6 +46,8 @@ class EpisodeItem {
|
||||
showStatus: j['show_status'] as String?,
|
||||
showCliffhanger: _parseBool(j['show_cliffhanger']),
|
||||
posterPath: j['poster_path'] as String?,
|
||||
showId: (j['show_id'] as num?)?.toInt(),
|
||||
downloadPath: j['download_path'] as String?,
|
||||
);
|
||||
|
||||
static bool? _parseBool(dynamic v) {
|
||||
|
||||
Reference in New Issue
Block a user