mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
40 lines
1006 B
Dart
40 lines
1006 B
Dart
import 'package:PiliPlus/models_new/fav/fav_pgc/new_ep.dart';
|
|
import 'package:PiliPlus/pages/common/multi_select/base.dart';
|
|
|
|
class FavPgcItemModel with MultiSelectData {
|
|
int? seasonId;
|
|
String? title;
|
|
String? cover;
|
|
int? isFinish;
|
|
String? badge;
|
|
NewEp? newEp;
|
|
String? renewalTime;
|
|
String? progress;
|
|
|
|
FavPgcItemModel({
|
|
this.seasonId,
|
|
this.title,
|
|
this.cover,
|
|
this.isFinish,
|
|
this.badge,
|
|
this.newEp,
|
|
this.renewalTime,
|
|
this.progress,
|
|
});
|
|
|
|
factory FavPgcItemModel.fromJson(
|
|
Map<String, dynamic> json,
|
|
) => FavPgcItemModel(
|
|
seasonId: json['season_id'] as int?,
|
|
title: json['title'] as String?,
|
|
cover: json['cover'] as String?,
|
|
isFinish: json['is_finish'] as int?,
|
|
badge: json['badge'] as String?,
|
|
newEp: json['new_ep'] == null
|
|
? null
|
|
: NewEp.fromJson(json['new_ep'] as Map<String, dynamic>),
|
|
renewalTime: json['renewal_time'] as String?,
|
|
progress: json['progress'] == '' ? null : json['progress'],
|
|
);
|
|
}
|