Series Detail Screen

This commit is contained in:
2025-10-30 15:13:02 +01:00
parent 64354c6bd4
commit a77e36c6ec
5 changed files with 537 additions and 1 deletions
@@ -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) {