mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
30 lines
637 B
Dart
30 lines
637 B
Dart
class Episode {
|
|
String? cover;
|
|
int? episodeId;
|
|
int? follow;
|
|
String? pubIndex;
|
|
String? pubTime;
|
|
int? seasonId;
|
|
String? title;
|
|
|
|
Episode({
|
|
this.cover,
|
|
this.episodeId,
|
|
this.follow,
|
|
this.pubIndex,
|
|
this.pubTime,
|
|
this.seasonId,
|
|
this.title,
|
|
});
|
|
|
|
factory Episode.fromJson(Map<String, dynamic> json) => Episode(
|
|
cover: json['cover'] as String?,
|
|
episodeId: json['episode_id'] as int?,
|
|
follow: json['follow'] as int?,
|
|
pubIndex: json['pub_index'] as String?,
|
|
pubTime: json['pub_time'] as String?,
|
|
seasonId: json['season_id'] as int?,
|
|
title: json['title'] as String?,
|
|
);
|
|
}
|