Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -6,8 +6,8 @@ class BadgeInfo {
BadgeInfo({this.bgColor, this.bgColorNight, this.text});
factory BadgeInfo.fromJson(Map<String, dynamic> json) => BadgeInfo(
bgColor: json['bg_color'] as String?,
bgColorNight: json['bg_color_night'] as String?,
text: json['text'] as String?,
);
bgColor: json['bg_color'] as String?,
bgColorNight: json['bg_color_night'] as String?,
text: json['text'] as String?,
);
}

View File

@@ -10,12 +10,12 @@ class PgcIndexResult {
PgcIndexResult({this.hasNext, this.list, this.num, this.size, this.total});
factory PgcIndexResult.fromJson(Map<String, dynamic> json) => PgcIndexResult(
hasNext: json['has_next'] as int?,
list: (json['list'] as List<dynamic>?)
?.map((e) => PgcIndexItem.fromJson(e as Map<String, dynamic>))
.toList(),
num: json['num'] as int?,
size: json['size'] as int?,
total: json['total'] as int?,
);
hasNext: json['has_next'] as int?,
list: (json['list'] as List<dynamic>?)
?.map((e) => PgcIndexItem.fromJson(e as Map<String, dynamic>))
.toList(),
num: json['num'] as int?,
size: json['size'] as int?,
total: json['total'] as int?,
);
}

View File

@@ -5,7 +5,7 @@ class FirstEp {
FirstEp({this.cover, this.epId});
factory FirstEp.fromJson(Map<String, dynamic> json) => FirstEp(
cover: json['cover'] as String?,
epId: json['ep_id'] as int?,
);
cover: json['cover'] as String?,
epId: json['ep_id'] as int?,
);
}

View File

@@ -43,27 +43,27 @@ class PgcIndexItem {
});
factory PgcIndexItem.fromJson(Map<String, dynamic> json) => PgcIndexItem(
badge: json['badge'] as String?,
badgeInfo: json['badge_info'] == null
? null
: BadgeInfo.fromJson(json['badge_info'] as Map<String, dynamic>),
badgeType: json['badge_type'] as int?,
cover: json['cover'] as String?,
firstEp: json['first_ep'] == null
? null
: FirstEp.fromJson(json['first_ep'] as Map<String, dynamic>),
indexShow: json['index_show'] as String?,
isFinish: json['is_finish'] as int?,
link: json['link'] as String?,
mediaId: json['media_id'] as int?,
order: json['order'] as String?,
orderType: json['order_type'] as String?,
score: json['score'] as String?,
seasonId: json['season_id'] as int?,
seasonStatus: json['season_status'] as int?,
seasonType: json['season_type'] as int?,
subTitle: json['subTitle'] as String?,
title: json['title'] as String?,
titleIcon: json['title_icon'] as String?,
);
badge: json['badge'] as String?,
badgeInfo: json['badge_info'] == null
? null
: BadgeInfo.fromJson(json['badge_info'] as Map<String, dynamic>),
badgeType: json['badge_type'] as int?,
cover: json['cover'] as String?,
firstEp: json['first_ep'] == null
? null
: FirstEp.fromJson(json['first_ep'] as Map<String, dynamic>),
indexShow: json['index_show'] as String?,
isFinish: json['is_finish'] as int?,
link: json['link'] as String?,
mediaId: json['media_id'] as int?,
order: json['order'] as String?,
orderType: json['order_type'] as String?,
score: json['score'] as String?,
seasonId: json['season_id'] as int?,
seasonStatus: json['season_status'] as int?,
seasonType: json['season_type'] as int?,
subTitle: json['subTitle'] as String?,
title: json['title'] as String?,
titleIcon: json['title_icon'] as String?,
);
}