clean up models

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-05 12:10:18 +08:00
parent b897103af0
commit 279f21857d
308 changed files with 156 additions and 6243 deletions

View File

@@ -1,49 +1,28 @@
import 'package:PiliPlus/utils/extension/iterable_ext.dart';
class SpaceCheeseItem {
bool? cooperated;
String? cooperationMark;
String? cover;
int? epCount;
String? link;
List<String>? marks;
int? page;
int? play;
int? seasonId;
String? status;
String? subtitle;
String? title;
String? ctime;
SpaceCheeseItem({
this.cooperated,
this.cooperationMark,
this.cover,
this.epCount,
this.link,
this.marks,
this.page,
this.play,
this.seasonId,
this.status,
this.subtitle,
this.title,
this.ctime,
});
factory SpaceCheeseItem.fromJson(Map<String, dynamic> json) =>
SpaceCheeseItem(
cooperated: json['cooperated'] as bool?,
cooperationMark: json['cooperation_mark'] as String?,
cover: json['cover'] as String?,
epCount: json['ep_count'] as int?,
link: json['link'] as String?,
marks: (json['marks'] as List?)?.fromCast(),
page: json['page'] as int?,
play: json['play'] as int?,
seasonId: json['season_id'] as int?,
status: json['status'] as String?,
subtitle: json['subtitle'] as String?,
title: json['title'] as String?,
ctime: json['ctime'] as String?,
);