mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 02:56:58 +08:00
33
lib/models_new/later/bangumi.dart
Normal file
33
lib/models_new/later/bangumi.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'package:PiliPlus/models_new/later/season.dart';
|
||||
|
||||
class Bangumi {
|
||||
int? epId;
|
||||
String? title;
|
||||
String? longTitle;
|
||||
int? episodeStatus;
|
||||
int? follow;
|
||||
String? cover;
|
||||
Season? season;
|
||||
|
||||
Bangumi({
|
||||
this.epId,
|
||||
this.title,
|
||||
this.longTitle,
|
||||
this.episodeStatus,
|
||||
this.follow,
|
||||
this.cover,
|
||||
this.season,
|
||||
});
|
||||
|
||||
factory Bangumi.fromJson(Map<String, dynamic> json) => Bangumi(
|
||||
epId: json['ep_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
longTitle: json['long_title'] as String?,
|
||||
episodeStatus: json['episode_status'] as int?,
|
||||
follow: json['follow'] as int?,
|
||||
cover: json['cover'] as String?,
|
||||
season: json['season'] == null
|
||||
? null
|
||||
: Season.fromJson(json['season'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user