mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-09 10:40:12 +08:00
@@ -23,7 +23,8 @@ class AiConclusionData {
|
||||
modelResult: json['model_result'] == null
|
||||
? null
|
||||
: AiConclusionResult.fromJson(
|
||||
json['model_result'] as Map<String, dynamic>),
|
||||
json['model_result'] as Map<String, dynamic>,
|
||||
),
|
||||
stid: json['stid'] as String?,
|
||||
status: json['status'] as int?,
|
||||
likeNum: json['like_num'] as int?,
|
||||
|
||||
@@ -7,8 +7,12 @@ class AiConclusionResult {
|
||||
List<Outline>? outline;
|
||||
List<Subtitle>? subtitle;
|
||||
|
||||
AiConclusionResult(
|
||||
{this.resultType, this.summary, this.outline, this.subtitle});
|
||||
AiConclusionResult({
|
||||
this.resultType,
|
||||
this.summary,
|
||||
this.outline,
|
||||
this.subtitle,
|
||||
});
|
||||
|
||||
factory AiConclusionResult.fromJson(Map<String, dynamic> json) =>
|
||||
AiConclusionResult(
|
||||
|
||||
@@ -8,10 +8,10 @@ class Outline {
|
||||
Outline({this.title, this.partOutline, this.timestamp});
|
||||
|
||||
factory Outline.fromJson(Map<String, dynamic> json) => Outline(
|
||||
title: json['title'] as String?,
|
||||
partOutline: (json['part_outline'] as List<dynamic>?)
|
||||
?.map((e) => PartOutline.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
timestamp: json['timestamp'] as int?,
|
||||
);
|
||||
title: json['title'] as String?,
|
||||
partOutline: (json['part_outline'] as List<dynamic>?)
|
||||
?.map((e) => PartOutline.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
timestamp: json['timestamp'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class PartOutline {
|
||||
PartOutline({this.timestamp, this.content});
|
||||
|
||||
factory PartOutline.fromJson(Map<String, dynamic> json) => PartOutline(
|
||||
timestamp: json['timestamp'] as int?,
|
||||
content: json['content'] as String?,
|
||||
);
|
||||
timestamp: json['timestamp'] as int?,
|
||||
content: json['content'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class PartSubtitle {
|
||||
PartSubtitle({this.startTimestamp, this.endTimestamp, this.content});
|
||||
|
||||
factory PartSubtitle.fromJson(Map<String, dynamic> json) => PartSubtitle(
|
||||
startTimestamp: json['start_timestamp'] as int?,
|
||||
endTimestamp: json['end_timestamp'] as int?,
|
||||
content: json['content'] as String?,
|
||||
);
|
||||
startTimestamp: json['start_timestamp'] as int?,
|
||||
endTimestamp: json['end_timestamp'] as int?,
|
||||
content: json['content'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ class Subtitle {
|
||||
Subtitle({this.title, this.partSubtitle, this.timestamp});
|
||||
|
||||
factory Subtitle.fromJson(Map<String, dynamic> json) => Subtitle(
|
||||
title: json['title'] as String?,
|
||||
partSubtitle: (json['part_subtitle'] as List<dynamic>?)
|
||||
?.map((e) => PartSubtitle.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
timestamp: json['timestamp'] as int?,
|
||||
);
|
||||
title: json['title'] as String?,
|
||||
partSubtitle: (json['part_subtitle'] as List<dynamic>?)
|
||||
?.map((e) => PartSubtitle.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
timestamp: json['timestamp'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -57,37 +57,37 @@ class Arc {
|
||||
});
|
||||
|
||||
factory Arc.fromJson(Map<String, dynamic> json) => Arc(
|
||||
aid: json['aid'] as int?,
|
||||
videos: json['videos'] as int?,
|
||||
typeId: json['type_id'] as int?,
|
||||
typeName: json['type_name'] as String?,
|
||||
copyright: json['copyright'] as int?,
|
||||
pic: json['pic'] as String?,
|
||||
title: json['title'] as String?,
|
||||
pubdate: json['pubdate'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
desc: json['desc'] as String?,
|
||||
state: json['state'] as int?,
|
||||
duration: json['duration'] as int?,
|
||||
rights: json['rights'] == null
|
||||
? null
|
||||
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
|
||||
author: json['author'] == null
|
||||
? null
|
||||
: Owner.fromJson(json['author'] as Map<String, dynamic>),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
dynam1c: json['dynamic'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
isChargeableSeason: json['is_chargeable_season'] as bool?,
|
||||
isBlooper: json['is_blooper'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
vtDisplay: json['vt_display'] as String?,
|
||||
typeIdV2: json['type_id_v2'] as int?,
|
||||
typeNameV2: json['type_name_v2'] as String?,
|
||||
isLessonVideo: json['is_lesson_video'] as int?,
|
||||
);
|
||||
aid: json['aid'] as int?,
|
||||
videos: json['videos'] as int?,
|
||||
typeId: json['type_id'] as int?,
|
||||
typeName: json['type_name'] as String?,
|
||||
copyright: json['copyright'] as int?,
|
||||
pic: json['pic'] as String?,
|
||||
title: json['title'] as String?,
|
||||
pubdate: json['pubdate'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
desc: json['desc'] as String?,
|
||||
state: json['state'] as int?,
|
||||
duration: json['duration'] as int?,
|
||||
rights: json['rights'] == null
|
||||
? null
|
||||
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
|
||||
author: json['author'] == null
|
||||
? null
|
||||
: Owner.fromJson(json['author'] as Map<String, dynamic>),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
dynam1c: json['dynamic'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
isChargeableSeason: json['is_chargeable_season'] as bool?,
|
||||
isBlooper: json['is_blooper'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
vtDisplay: json['vt_display'] as String?,
|
||||
typeIdV2: json['type_id_v2'] as int?,
|
||||
typeNameV2: json['type_name_v2'] as String?,
|
||||
isLessonVideo: json['is_lesson_video'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class ArgueInfo {
|
||||
ArgueInfo({this.argueMsg, this.argueType, this.argueLink});
|
||||
|
||||
factory ArgueInfo.fromJson(Map<String, dynamic> json) => ArgueInfo(
|
||||
argueMsg: json['argue_msg'] as String?,
|
||||
argueType: json['argue_type'] as int?,
|
||||
argueLink: json['argue_link'] as String?,
|
||||
);
|
||||
argueMsg: json['argue_msg'] as String?,
|
||||
argueType: json['argue_type'] as int?,
|
||||
argueLink: json['argue_link'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ class VideoDetailData {
|
||||
epId: json['redirect_url'] == null
|
||||
? null
|
||||
: PiliScheme.uriDigitRegExp
|
||||
.firstMatch(json['redirect_url'])
|
||||
?.group(1),
|
||||
.firstMatch(json['redirect_url'])
|
||||
?.group(1),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class DescV2 {
|
||||
DescV2({this.rawText, this.type, this.bizId});
|
||||
|
||||
factory DescV2.fromJson(Map<String, dynamic> json) => DescV2(
|
||||
rawText: json['raw_text'] as String?,
|
||||
type: json['type'] as int?,
|
||||
bizId: json['biz_id'] as int?,
|
||||
);
|
||||
rawText: json['raw_text'] as String?,
|
||||
type: json['type'] as int?,
|
||||
bizId: json['biz_id'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Dimension {
|
||||
Dimension({this.width, this.height, this.rotate});
|
||||
|
||||
factory Dimension.fromJson(Map<String, dynamic> json) => Dimension(
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
rotate: json['rotate'] as int?,
|
||||
);
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
rotate: json['rotate'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -31,23 +31,23 @@ class EpisodeItem {
|
||||
});
|
||||
|
||||
factory EpisodeItem.fromJson(Map<String, dynamic> json) => EpisodeItem(
|
||||
seasonId: json['season_id'] as int?,
|
||||
sectionId: json['section_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
attribute: json['attribute'] as int?,
|
||||
arc: json['arc'] == null
|
||||
? null
|
||||
: Arc.fromJson(json['arc'] as Map<String, dynamic>),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Part.fromJson(json['page'] as Map<String, dynamic>),
|
||||
bvid: json['bvid'] as String?,
|
||||
pages: (json['pages'] as List<dynamic>?)
|
||||
?.map((e) => Part.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
badge: json['badge'],
|
||||
);
|
||||
seasonId: json['season_id'] as int?,
|
||||
sectionId: json['section_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
attribute: json['attribute'] as int?,
|
||||
arc: json['arc'] == null
|
||||
? null
|
||||
: Arc.fromJson(json['arc'] as Map<String, dynamic>),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Part.fromJson(json['page'] as Map<String, dynamic>),
|
||||
bvid: json['bvid'] as String?,
|
||||
pages: (json['pages'] as List<dynamic>?)
|
||||
?.map((e) => Part.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
badge: json['badge'],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Owner {
|
||||
Owner({this.mid, this.name, this.face});
|
||||
|
||||
factory Owner.fromJson(Map<String, dynamic> json) => Owner(
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
);
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -28,18 +28,18 @@ class Part {
|
||||
});
|
||||
|
||||
factory Part.fromJson(Map<String, dynamic> json) => Part(
|
||||
cid: json['cid'] as int?,
|
||||
page: json['page'] as int?,
|
||||
from: json['from'] as String?,
|
||||
pagePart: json['part'] as String?,
|
||||
duration: json['duration'] as int?,
|
||||
vid: json['vid'] as String?,
|
||||
weblink: json['weblink'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
ctime: json['ctime'] as int?,
|
||||
firstFrame: json['first_frame'] as String?,
|
||||
badge: json["badge"],
|
||||
);
|
||||
cid: json['cid'] as int?,
|
||||
page: json['page'] as int?,
|
||||
from: json['from'] as String?,
|
||||
pagePart: json['part'] as String?,
|
||||
duration: json['duration'] as int?,
|
||||
vid: json['vid'] as String?,
|
||||
weblink: json['weblink'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
ctime: json['ctime'] as int?,
|
||||
firstFrame: json['first_frame'] as String?,
|
||||
badge: json["badge"],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -40,23 +40,23 @@ class Rights {
|
||||
});
|
||||
|
||||
factory Rights.fromJson(Map<String, dynamic> json) => Rights(
|
||||
bp: json['bp'] as int?,
|
||||
elec: json['elec'] as int?,
|
||||
download: json['download'] as int?,
|
||||
movie: json['movie'] as int?,
|
||||
pay: json['pay'] as int?,
|
||||
hd5: json['hd5'] as int?,
|
||||
noReprint: json['no_reprint'] as int?,
|
||||
autoplay: json['autoplay'] as int?,
|
||||
ugcPay: json['ugc_pay'] as int?,
|
||||
isCooperation: json['is_cooperation'] as int?,
|
||||
ugcPayPreview: json['ugc_pay_preview'] as int?,
|
||||
noBackground: json['no_background'] as int?,
|
||||
cleanMode: json['clean_mode'] as int?,
|
||||
isSteinGate: json['is_stein_gate'] as int?,
|
||||
is360: json['is_360'] as int?,
|
||||
noShare: json['no_share'] as int?,
|
||||
arcPay: json['arc_pay'] as int?,
|
||||
freeWatch: json['free_watch'] as int?,
|
||||
);
|
||||
bp: json['bp'] as int?,
|
||||
elec: json['elec'] as int?,
|
||||
download: json['download'] as int?,
|
||||
movie: json['movie'] as int?,
|
||||
pay: json['pay'] as int?,
|
||||
hd5: json['hd5'] as int?,
|
||||
noReprint: json['no_reprint'] as int?,
|
||||
autoplay: json['autoplay'] as int?,
|
||||
ugcPay: json['ugc_pay'] as int?,
|
||||
isCooperation: json['is_cooperation'] as int?,
|
||||
ugcPayPreview: json['ugc_pay_preview'] as int?,
|
||||
noBackground: json['no_background'] as int?,
|
||||
cleanMode: json['clean_mode'] as int?,
|
||||
isSteinGate: json['is_stein_gate'] as int?,
|
||||
is360: json['is_360'] as int?,
|
||||
noShare: json['no_share'] as int?,
|
||||
arcPay: json['arc_pay'] as int?,
|
||||
freeWatch: json['free_watch'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -11,12 +11,12 @@ class SectionItem {
|
||||
SectionItem({this.seasonId, this.id, this.title, this.type, this.episodes});
|
||||
|
||||
factory SectionItem.fromJson(Map<String, dynamic> json) => SectionItem(
|
||||
seasonId: json['season_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
type: json['type'] as int?,
|
||||
episodes: (json['episodes'] as List<dynamic>?)
|
||||
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
seasonId: json['season_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
type: json['type'] as int?,
|
||||
episodes: (json['episodes'] as List<dynamic>?)
|
||||
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -30,18 +30,18 @@ class Stat {
|
||||
});
|
||||
|
||||
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
||||
aid: json['aid'] as int?,
|
||||
view: json['view'] as int?,
|
||||
danmaku: json['danmaku'] as int?,
|
||||
reply: json['reply'] as int?,
|
||||
favorite: json['favorite'] as int?,
|
||||
coin: json['coin'] as num?,
|
||||
share: json['share'] as int?,
|
||||
nowRank: json['now_rank'] as int?,
|
||||
hisRank: json['his_rank'] as int?,
|
||||
like: json['like'] as int?,
|
||||
dislike: json['dislike'] as int?,
|
||||
evaluation: json['evaluation'] as String?,
|
||||
vt: json['vt'] as int?,
|
||||
);
|
||||
aid: json['aid'] as int?,
|
||||
view: json['view'] as int?,
|
||||
danmaku: json['danmaku'] as int?,
|
||||
reply: json['reply'] as int?,
|
||||
favorite: json['favorite'] as int?,
|
||||
coin: json['coin'] as num?,
|
||||
share: json['share'] as int?,
|
||||
nowRank: json['now_rank'] as int?,
|
||||
hisRank: json['his_rank'] as int?,
|
||||
like: json['like'] as int?,
|
||||
dislike: json['dislike'] as int?,
|
||||
evaluation: json['evaluation'] as String?,
|
||||
vt: json['vt'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class Subtitle {
|
||||
Subtitle({this.allowSubmit, this.list});
|
||||
|
||||
factory Subtitle.fromJson(Map<String, dynamic> json) => Subtitle(
|
||||
allowSubmit: json['allow_submit'] as bool?,
|
||||
list: json['list'] as List<dynamic>?,
|
||||
);
|
||||
allowSubmit: json['allow_submit'] as bool?,
|
||||
list: json['list'] as List<dynamic>?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -33,22 +33,22 @@ class UgcSeason {
|
||||
});
|
||||
|
||||
factory UgcSeason.fromJson(Map<String, dynamic> json) => UgcSeason(
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
mid: json['mid'] as int?,
|
||||
intro: json['intro'] as String?,
|
||||
signState: json['sign_state'] as int?,
|
||||
attribute: json['attribute'] as int?,
|
||||
sections: (json['sections'] as List<dynamic>?)
|
||||
?.map((e) => SectionItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
epCount: json['ep_count'] as int?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
isPaySeason: json['is_pay_season'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
mid: json['mid'] as int?,
|
||||
intro: json['intro'] as String?,
|
||||
signState: json['sign_state'] as int?,
|
||||
attribute: json['attribute'] as int?,
|
||||
sections: (json['sections'] as List<dynamic>?)
|
||||
?.map((e) => SectionItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
epCount: json['ep_count'] as int?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
isPaySeason: json['is_pay_season'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class UserGarb {
|
||||
UserGarb({this.urlImageAniCut});
|
||||
|
||||
factory UserGarb.fromJson(Map<String, dynamic> json) => UserGarb(
|
||||
urlImageAniCut: json['url_image_ani_cut'] as String?,
|
||||
);
|
||||
urlImageAniCut: json['url_image_ani_cut'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -24,21 +24,20 @@ class Author {
|
||||
});
|
||||
|
||||
factory Author.fromJson(Map<String, dynamic> json) => Author(
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
level: json['level'] as int?,
|
||||
isSeniorMember: json['is_senior_member'] as int?,
|
||||
vipInfo: json['vip_info'] == null
|
||||
? null
|
||||
: Vip.fromJson(json['vip_info'] as Map<String, dynamic>),
|
||||
pendant: json['pendant'] == null
|
||||
? null
|
||||
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
|
||||
official: json['official'] == null
|
||||
? null
|
||||
: BaseOfficialVerify.fromJson(
|
||||
json['official'] as Map<String, dynamic>),
|
||||
follower: json['follower'] as int?,
|
||||
);
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
level: json['level'] as int?,
|
||||
isSeniorMember: json['is_senior_member'] as int?,
|
||||
vipInfo: json['vip_info'] == null
|
||||
? null
|
||||
: Vip.fromJson(json['vip_info'] as Map<String, dynamic>),
|
||||
pendant: json['pendant'] == null
|
||||
? null
|
||||
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
|
||||
official: json['official'] == null
|
||||
? null
|
||||
: BaseOfficialVerify.fromJson(json['official'] as Map<String, dynamic>),
|
||||
follower: json['follower'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -10,13 +10,13 @@ class VideoNoteData {
|
||||
VideoNoteData({this.list, this.page, this.showPublicNote, this.message});
|
||||
|
||||
factory VideoNoteData.fromJson(Map<String, dynamic> json) => VideoNoteData(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => VideoNoteItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Page.fromJson(json['page'] as Map<String, dynamic>),
|
||||
showPublicNote: json['show_public_note'] as bool?,
|
||||
message: json['message'] as String?,
|
||||
);
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => VideoNoteItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Page.fromJson(json['page'] as Map<String, dynamic>),
|
||||
showPublicNote: json['show_public_note'] as bool?,
|
||||
message: json['message'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Page {
|
||||
Page({this.total, this.size, this.num});
|
||||
|
||||
factory Page.fromJson(Map<String, dynamic> json) => Page(
|
||||
total: json['total'] as int?,
|
||||
size: json['size'] as int?,
|
||||
num: json['num'] as int?,
|
||||
);
|
||||
total: json['total'] as int?,
|
||||
size: json['size'] as int?,
|
||||
num: json['num'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ class PbpData {
|
||||
});
|
||||
|
||||
factory PbpData.fromJson(Map<String, dynamic> json) => PbpData(
|
||||
stepSec: json["step_sec"],
|
||||
events: json["events"] == null ? null : Events.fromJson(json["events"]),
|
||||
);
|
||||
stepSec: json["step_sec"],
|
||||
events: json["events"] == null ? null : Events.fromJson(json["events"]),
|
||||
);
|
||||
}
|
||||
|
||||
class Events {
|
||||
@@ -21,8 +21,8 @@ class Events {
|
||||
});
|
||||
|
||||
factory Events.fromJson(Map<String, dynamic> json) => Events(
|
||||
eDefault: (json["default"] as List?)
|
||||
?.map((e) => (e as num).toDouble())
|
||||
.toList(),
|
||||
);
|
||||
eDefault: (json["default"] as List?)
|
||||
?.map((e) => (e as num).toDouble())
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,15 +16,15 @@ class PlayInfoData {
|
||||
});
|
||||
|
||||
factory PlayInfoData.fromJson(Map<String, dynamic> json) => PlayInfoData(
|
||||
lastPlayCid: json['last_play_cid'] as int?,
|
||||
subtitle: json['subtitle'] == null
|
||||
? null
|
||||
: SubtitleInfo.fromJson(json['subtitle'] as Map<String, dynamic>),
|
||||
viewPoints: (json['view_points'] as List?)
|
||||
?.map((e) => ViewPoint.fromJson(e))
|
||||
.toList(),
|
||||
interaction: json["interaction"] == null
|
||||
? null
|
||||
: Interaction.fromJson(json["interaction"]),
|
||||
);
|
||||
lastPlayCid: json['last_play_cid'] as int?,
|
||||
subtitle: json['subtitle'] == null
|
||||
? null
|
||||
: SubtitleInfo.fromJson(json['subtitle'] as Map<String, dynamic>),
|
||||
viewPoints: (json['view_points'] as List?)
|
||||
?.map((e) => ViewPoint.fromJson(e))
|
||||
.toList(),
|
||||
interaction: json["interaction"] == null
|
||||
? null
|
||||
: Interaction.fromJson(json["interaction"]),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ class Interaction {
|
||||
});
|
||||
|
||||
factory Interaction.fromJson(Map<String, dynamic> json) => Interaction(
|
||||
historyNode: json["history_node"] == null
|
||||
? null
|
||||
: HistoryNode.fromJson(json["history_node"]),
|
||||
graphVersion: json["graph_version"],
|
||||
);
|
||||
historyNode: json["history_node"] == null
|
||||
? null
|
||||
: HistoryNode.fromJson(json["history_node"]),
|
||||
graphVersion: json["graph_version"],
|
||||
);
|
||||
}
|
||||
|
||||
class HistoryNode {
|
||||
@@ -27,8 +27,8 @@ class HistoryNode {
|
||||
});
|
||||
|
||||
factory HistoryNode.fromJson(Map<String, dynamic> json) => HistoryNode(
|
||||
nodeId: json["node_id"],
|
||||
title: json["title"],
|
||||
cid: json["cid"],
|
||||
);
|
||||
nodeId: json["node_id"],
|
||||
title: json["title"],
|
||||
cid: json["cid"],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ class Subtitle {
|
||||
});
|
||||
|
||||
factory Subtitle.fromJson(Map<String, dynamic> json) => Subtitle(
|
||||
lan: json["lan"],
|
||||
lanDoc: json["lan_doc"],
|
||||
subtitleUrl: json["subtitle_url"],
|
||||
subtitleUrlV2: json["subtitle_url_v2"],
|
||||
);
|
||||
lan: json["lan"],
|
||||
lanDoc: json["lan_doc"],
|
||||
subtitleUrl: json["subtitle_url"],
|
||||
subtitleUrlV2: json["subtitle_url_v2"],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ class SubtitleInfo {
|
||||
SubtitleInfo({this.lan, this.lanDoc, this.subtitles});
|
||||
|
||||
factory SubtitleInfo.fromJson(Map<String, dynamic> json) => SubtitleInfo(
|
||||
lan: json['lan'] as String?,
|
||||
lanDoc: json['lan_doc'] as String?,
|
||||
subtitles: (json['subtitles'] as List<dynamic>?)
|
||||
?.map((e) => Subtitle.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
lan: json['lan'] as String?,
|
||||
lanDoc: json['lan_doc'] as String?,
|
||||
subtitles: (json['subtitles'] as List<dynamic>?)
|
||||
?.map((e) => Subtitle.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,13 +20,13 @@ class ViewPoint {
|
||||
});
|
||||
|
||||
factory ViewPoint.fromJson(Map<String, dynamic> json) => ViewPoint(
|
||||
type: json["type"],
|
||||
from: json["from"],
|
||||
to: json["to"],
|
||||
content: json["content"],
|
||||
imgUrl: json["imgUrl"],
|
||||
logoUrl: json["logoUrl"],
|
||||
teamType: json["team_type"],
|
||||
teamName: json["team_name"],
|
||||
);
|
||||
type: json["type"],
|
||||
from: json["from"],
|
||||
to: json["to"],
|
||||
content: json["content"],
|
||||
imgUrl: json["imgUrl"],
|
||||
logoUrl: json["logoUrl"],
|
||||
teamType: json["team_type"],
|
||||
teamName: json["team_name"],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ class VideoRelation {
|
||||
});
|
||||
|
||||
factory VideoRelation.fromJson(Map<String, dynamic> json) => VideoRelation(
|
||||
attention: json['attention'] as bool?,
|
||||
favorite: json['favorite'] as bool?,
|
||||
seasonFav: json['season_fav'] as bool?,
|
||||
like: json['like'] as bool?,
|
||||
dislike: json['dislike'] as bool?,
|
||||
coin: json['coin'] as num?,
|
||||
);
|
||||
attention: json['attention'] as bool?,
|
||||
favorite: json['favorite'] as bool?,
|
||||
seasonFav: json['season_fav'] as bool?,
|
||||
like: json['like'] as bool?,
|
||||
dislike: json['dislike'] as bool?,
|
||||
coin: json['coin'] as num?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@ class VideoShotData {
|
||||
});
|
||||
|
||||
factory VideoShotData.fromJson(Map<String, dynamic> json) => VideoShotData(
|
||||
pvdata: json["pvdata"],
|
||||
imgXLen: json["img_x_len"],
|
||||
imgYLen: json["img_y_len"],
|
||||
imgXSize: json["img_x_size"],
|
||||
imgYSize: json["img_y_size"],
|
||||
image: (json["image"] as List?)?.cast(),
|
||||
index: (json["index"] as List?)?.cast(),
|
||||
);
|
||||
pvdata: json["pvdata"],
|
||||
imgXLen: json["img_x_len"],
|
||||
imgYLen: json["img_y_len"],
|
||||
imgXSize: json["img_x_size"],
|
||||
imgYSize: json["img_y_size"],
|
||||
image: (json["image"] as List?)?.cast(),
|
||||
index: (json["index"] as List?)?.cast(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@ class Choice {
|
||||
});
|
||||
|
||||
factory Choice.fromJson(Map<String, dynamic> json) => Choice(
|
||||
id: json['id'] as int?,
|
||||
platformAction: json['platform_action'] as String?,
|
||||
nativeAction: json['native_action'] as String?,
|
||||
condition: json['condition'] as String?,
|
||||
cid: json['cid'] as int?,
|
||||
option: json['option'] as String?,
|
||||
isDefault: json['is_default'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
platformAction: json['platform_action'] as String?,
|
||||
nativeAction: json['native_action'] as String?,
|
||||
condition: json['condition'] as String?,
|
||||
cid: json['cid'] as int?,
|
||||
option: json['option'] as String?,
|
||||
isDefault: json['is_default'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -22,18 +22,18 @@ class EdgeInfoData {
|
||||
});
|
||||
|
||||
factory EdgeInfoData.fromJson(Map<String, dynamic> json) => EdgeInfoData(
|
||||
title: json['title'] as String?,
|
||||
edgeId: json['edge_id'] as int?,
|
||||
storyList: (json['story_list'] as List<dynamic>?)
|
||||
?.map((e) => StoryList.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
edges: json['edges'] == null
|
||||
? null
|
||||
: Edges.fromJson(json['edges'] as Map<String, dynamic>),
|
||||
buvid: json['buvid'] as String?,
|
||||
preload: json['preload'] == null
|
||||
? null
|
||||
: Preload.fromJson(json['preload'] as Map<String, dynamic>),
|
||||
isLeaf: json['is_leaf'] as int?,
|
||||
);
|
||||
title: json['title'] as String?,
|
||||
edgeId: json['edge_id'] as int?,
|
||||
storyList: (json['story_list'] as List<dynamic>?)
|
||||
?.map((e) => StoryList.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
edges: json['edges'] == null
|
||||
? null
|
||||
: Edges.fromJson(json['edges'] as Map<String, dynamic>),
|
||||
buvid: json['buvid'] as String?,
|
||||
preload: json['preload'] == null
|
||||
? null
|
||||
: Preload.fromJson(json['preload'] as Map<String, dynamic>),
|
||||
isLeaf: json['is_leaf'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@ class Dimension {
|
||||
Dimension({this.width, this.height, this.rotate, this.sar});
|
||||
|
||||
factory Dimension.fromJson(Map<String, dynamic> json) => Dimension(
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
rotate: json['rotate'] as int?,
|
||||
sar: json['sar'] as String?,
|
||||
);
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
rotate: json['rotate'] as int?,
|
||||
sar: json['sar'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -10,14 +10,14 @@ class Edges {
|
||||
Edges({this.dimension, this.questions, this.skin});
|
||||
|
||||
factory Edges.fromJson(Map<String, dynamic> json) => Edges(
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
questions: (json['questions'] as List<dynamic>?)
|
||||
?.map((e) => Question.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
skin: json['skin'] == null
|
||||
? null
|
||||
: Skin.fromJson(json['skin'] as Map<String, dynamic>),
|
||||
);
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
questions: (json['questions'] as List<dynamic>?)
|
||||
?.map((e) => Question.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
skin: json['skin'] == null
|
||||
? null
|
||||
: Skin.fromJson(json['skin'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Preload {
|
||||
Preload({this.video});
|
||||
|
||||
factory Preload.fromJson(Map<String, dynamic> json) => Preload(
|
||||
video: (json['video'] as List<dynamic>?)
|
||||
?.map((e) => Video.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
video: (json['video'] as List<dynamic>?)
|
||||
?.map((e) => Video.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,14 +20,14 @@ class Question {
|
||||
});
|
||||
|
||||
factory Question.fromJson(Map<String, dynamic> json) => Question(
|
||||
id: json['id'] as int?,
|
||||
type: json['type'] as int?,
|
||||
startTimeR: json['start_time_r'] as int?,
|
||||
duration: json['duration'] as int?,
|
||||
pauseVideo: json['pause_video'] as int?,
|
||||
title: json['title'] as String?,
|
||||
choices: (json['choices'] as List<dynamic>?)
|
||||
?.map((e) => Choice.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
type: json['type'] as int?,
|
||||
startTimeR: json['start_time_r'] as int?,
|
||||
duration: json['duration'] as int?,
|
||||
pauseVideo: json['pause_video'] as int?,
|
||||
title: json['title'] as String?,
|
||||
choices: (json['choices'] as List<dynamic>?)
|
||||
?.map((e) => Choice.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@ class Skin {
|
||||
});
|
||||
|
||||
factory Skin.fromJson(Map<String, dynamic> json) => Skin(
|
||||
choiceImage: json['choice_image'] as String?,
|
||||
titleTextColor: json['title_text_color'] as String?,
|
||||
titleShadowColor: json['title_shadow_color'] as String?,
|
||||
titleShadowOffsetY: json['title_shadow_offset_y'] as int?,
|
||||
titleShadowRadius: json['title_shadow_radius'] as int?,
|
||||
progressbarColor: json['progressbar_color'] as String?,
|
||||
progressbarShadowColor: json['progressbar_shadow_color'] as String?,
|
||||
);
|
||||
choiceImage: json['choice_image'] as String?,
|
||||
titleTextColor: json['title_text_color'] as String?,
|
||||
titleShadowColor: json['title_shadow_color'] as String?,
|
||||
titleShadowOffsetY: json['title_shadow_offset_y'] as int?,
|
||||
titleShadowRadius: json['title_shadow_radius'] as int?,
|
||||
progressbarColor: json['progressbar_color'] as String?,
|
||||
progressbarShadowColor: json['progressbar_shadow_color'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,13 +20,13 @@ class StoryList {
|
||||
});
|
||||
|
||||
factory StoryList.fromJson(Map<String, dynamic> json) => StoryList(
|
||||
nodeId: json['node_id'] as int?,
|
||||
edgeId: json['edge_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cid: json['cid'] as int?,
|
||||
startPos: json['start_pos'] as int?,
|
||||
cover: json['cover'] as String?,
|
||||
isCurrent: json['is_current'] as int?,
|
||||
cursor: json['cursor'] as int?,
|
||||
);
|
||||
nodeId: json['node_id'] as int?,
|
||||
edgeId: json['edge_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cid: json['cid'] as int?,
|
||||
startPos: json['start_pos'] as int?,
|
||||
cover: json['cover'] as String?,
|
||||
isCurrent: json['is_current'] as int?,
|
||||
cursor: json['cursor'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class Video {
|
||||
Video({this.aid, this.cid});
|
||||
|
||||
factory Video.fromJson(Map<String, dynamic> json) => Video(
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
);
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ class VideoTagItem {
|
||||
});
|
||||
|
||||
factory VideoTagItem.fromJson(Map<String, dynamic> json) => VideoTagItem(
|
||||
tagId: json["tag_id"],
|
||||
tagName: json["tag_name"],
|
||||
musicId: json["music_id"],
|
||||
jumpUrl: json["jump_url"],
|
||||
);
|
||||
tagId: json["tag_id"],
|
||||
tagName: json["tag_name"],
|
||||
musicId: json["music_id"],
|
||||
jumpUrl: json["jump_url"],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user