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 Activity {
Activity({this.headBgUrl, this.id, this.title});
factory Activity.fromJson(Map<String, dynamic> json) => Activity(
headBgUrl: json['head_bg_url'] as String?,
id: json['id'] as int?,
title: json['title'] as String?,
);
headBgUrl: json['head_bg_url'] as String?,
id: json['id'] as int?,
title: json['title'] as String?,
);
}

View File

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

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

@@ -7,9 +7,9 @@ class Danmaku {
Danmaku({this.icon, this.pureText, this.text, this.value});
factory Danmaku.fromJson(Map<String, dynamic> json) => Danmaku(
icon: json['icon'] as String?,
pureText: json['pure_text'] as String?,
text: json['text'] as String?,
value: json['value'] as int?,
);
icon: json['icon'] as String?,
pureText: json['pure_text'] as String?,
text: json['text'] as String?,
value: json['value'] as int?,
);
}

View File

@@ -6,8 +6,8 @@ class Dimension {
Dimension({this.height, this.rotate, this.width});
factory Dimension.fromJson(Map<String, dynamic> json) => Dimension(
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?,
width: json['width'] as int?,
);
}

View File

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

View File

@@ -71,44 +71,44 @@ class EpisodeItem {
});
factory EpisodeItem.fromJson(Map<String, dynamic> json) => EpisodeItem(
aid: json['aid'] as int?,
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?,
bvid: json['bvid'] as String?,
cid: json['cid'] as int?,
cover: json['cover'] as String?,
dimension: json['dimension'] == null
? null
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
duration: json['duration'] as int?,
enableVt: json['enable_vt'] as bool?,
epId: json['ep_id'] as int?,
from: json['from'] as String?,
id: json['id'] as int?,
isViewHide: json['is_view_hide'] as bool?,
link: json['link'] as String?,
longTitle: json['long_title'] as String?,
pubTime: json['pub_time'] as int?,
pv: json['pv'] as int?,
releaseDate: json['release_date'] as String?,
rights: json['rights'] == null
? null
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
sectionType: json['section_type'] as int?,
shareCopy: json['share_copy'] as String?,
shareUrl: json['share_url'] as String?,
shortLink: json['short_link'] as String?,
showDrmLoginDialog: json['showDrmLoginDialog'] as bool?,
showTitle: json['show_title'] as String?,
skip: json['skip'] == null
? null
: Skip.fromJson(json['skip'] as Map<String, dynamic>),
status: json['status'] as int?,
subtitle: json['subtitle'] as String?,
title: json['title'] as String?,
vid: json['vid'] as String?,
);
aid: json['aid'] as int?,
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?,
bvid: json['bvid'] as String?,
cid: json['cid'] as int?,
cover: json['cover'] as String?,
dimension: json['dimension'] == null
? null
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
duration: json['duration'] as int?,
enableVt: json['enable_vt'] as bool?,
epId: json['ep_id'] as int?,
from: json['from'] as String?,
id: json['id'] as int?,
isViewHide: json['is_view_hide'] as bool?,
link: json['link'] as String?,
longTitle: json['long_title'] as String?,
pubTime: json['pub_time'] as int?,
pv: json['pv'] as int?,
releaseDate: json['release_date'] as String?,
rights: json['rights'] == null
? null
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
sectionType: json['section_type'] as int?,
shareCopy: json['share_copy'] as String?,
shareUrl: json['share_url'] as String?,
shortLink: json['short_link'] as String?,
showDrmLoginDialog: json['showDrmLoginDialog'] as bool?,
showTitle: json['show_title'] as String?,
skip: json['skip'] == null
? null
: Skip.fromJson(json['skip'] as Map<String, dynamic>),
status: json['status'] as int?,
subtitle: json['subtitle'] as String?,
title: json['title'] as String?,
vid: json['vid'] as String?,
);
}

View File

@@ -5,7 +5,7 @@ class Freya {
Freya({this.bubbleShowCnt, this.iconShow});
factory Freya.fromJson(Map<String, dynamic> json) => Freya(
bubbleShowCnt: json['bubble_show_cnt'] as int?,
iconShow: json['icon_show'] as int?,
);
bubbleShowCnt: json['bubble_show_cnt'] as int?,
iconShow: json['icon_show'] as int?,
);
}

View File

@@ -5,7 +5,7 @@ class IconFont {
IconFont({this.name, this.text});
factory IconFont.fromJson(Map<String, dynamic> json) => IconFont(
name: json['name'] as String?,
text: json['text'] as String?,
);
name: json['name'] as String?,
text: json['text'] as String?,
);
}

View File

@@ -7,9 +7,9 @@ class NewEp {
NewEp({this.desc, this.id, this.isNew, this.title});
factory NewEp.fromJson(Map<String, dynamic> json) => NewEp(
desc: json['desc'] as String?,
id: json['id'] as int?,
isNew: json['is_new'] as int?,
title: json['title'] as String?,
);
desc: json['desc'] as String?,
id: json['id'] as int?,
isNew: json['is_new'] as int?,
title: json['title'] as String?,
);
}

View File

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

View File

@@ -16,11 +16,11 @@ class PayType {
});
factory PayType.fromJson(Map<String, dynamic> json) => PayType(
allowDiscount: json['allow_discount'] as int?,
allowPack: json['allow_pack'] as int?,
allowTicket: json['allow_ticket'] as int?,
allowTimeLimit: json['allow_time_limit'] as int?,
allowVipDiscount: json['allow_vip_discount'] as int?,
forbidBb: json['forbid_bb'] as int?,
);
allowDiscount: json['allow_discount'] as int?,
allowPack: json['allow_pack'] as int?,
allowTicket: json['allow_ticket'] as int?,
allowTimeLimit: json['allow_time_limit'] as int?,
allowVipDiscount: json['allow_vip_discount'] as int?,
forbidBb: json['forbid_bb'] as int?,
);
}

View File

@@ -26,17 +26,17 @@ class Payment {
});
factory Payment.fromJson(Map<String, dynamic> json) => Payment(
discount: json['discount'] as int?,
payType: json['pay_type'] == null
? null
: PayType.fromJson(json['pay_type'] as Map<String, dynamic>),
price: json['price'] as String?,
promotion: json['promotion'] as String?,
tip: json['tip'] as String?,
viewStartTime: json['view_start_time'] as int?,
vipDiscount: json['vip_discount'] as int?,
vipFirstPromotion: json['vip_first_promotion'] as String?,
vipPrice: json['vip_price'] as String?,
vipPromotion: json['vip_promotion'] as String?,
);
discount: json['discount'] as int?,
payType: json['pay_type'] == null
? null
: PayType.fromJson(json['pay_type'] as Map<String, dynamic>),
price: json['price'] as String?,
promotion: json['promotion'] as String?,
tip: json['tip'] as String?,
viewStartTime: json['view_start_time'] as int?,
vipDiscount: json['vip_discount'] as int?,
vipFirstPromotion: json['vip_first_promotion'] as String?,
vipPrice: json['vip_price'] as String?,
vipPromotion: json['vip_promotion'] as String?,
);
}

View File

@@ -4,6 +4,6 @@ class PlayStrategy {
PlayStrategy({this.strategies});
factory PlayStrategy.fromJson(Map<String, dynamic> json) => PlayStrategy(
strategies: json['strategies'],
);
strategies: json['strategies'],
);
}

View File

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

View File

@@ -16,11 +16,11 @@ class Publish {
});
factory Publish.fromJson(Map<String, dynamic> json) => Publish(
isFinish: json['is_finish'] as int?,
isStarted: json['is_started'] as int?,
pubTime: json['pub_time'] as String?,
pubTimeShow: json['pub_time_show'] as String?,
unknowPubDate: json['unknow_pub_date'] as int?,
weekday: json['weekday'] as int?,
);
isFinish: json['is_finish'] as int?,
isStarted: json['is_started'] as int?,
pubTime: json['pub_time'] as String?,
pubTimeShow: json['pub_time_show'] as String?,
unknowPubDate: json['unknow_pub_date'] as int?,
weekday: json['weekday'] as int?,
);
}

View File

@@ -5,7 +5,7 @@ class Rating {
Rating({this.count, this.score});
factory Rating.fromJson(Map<String, dynamic> json) => Rating(
count: json['count'] as int?,
score: (json['score'] as num?)?.toDouble(),
);
count: json['count'] as int?,
score: (json['score'] as num?)?.toDouble(),
);
}

View File

@@ -116,90 +116,89 @@ class PgcInfoModel {
});
factory PgcInfoModel.fromJson(Map<String, dynamic> json) => PgcInfoModel(
activity: json['activity'] == null
? null
: Activity.fromJson(json['activity'] as Map<String, dynamic>),
actors: json['actors'] as String?,
alias: json['alias'] as String?,
areas: (json['areas'] as List<dynamic>?)
?.map((e) => Area.fromJson(e as Map<String, dynamic>))
.toList(),
bkgCover: json['bkg_cover'] as String?,
cover: json['cover'] as String?,
deliveryFragmentVideo: json['delivery_fragment_video'] as bool?,
enableVt: json['enable_vt'] as bool?,
episodes: (json['episodes'] as List<dynamic>?)
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
.toList(),
evaluate: json['evaluate'] as String?,
freya: json['freya'] == null
? null
: Freya.fromJson(json['freya'] as Map<String, dynamic>),
hideEpVvVtDm: json['hide_ep_vv_vt_dm'] as int?,
iconFont: json['icon_font'] == null
? null
: IconFont.fromJson(json['icon_font'] as Map<String, dynamic>),
jpTitle: json['jp_title'] as String?,
link: json['link'] as String?,
mediaId: json['media_id'] as int?,
mode: json['mode'] as int?,
newEp: json['new_ep'] == null
? null
: NewEp.fromJson(json['new_ep'] as Map<String, dynamic>),
payment: json['payment'] == null
? null
: Payment.fromJson(json['payment'] as Map<String, dynamic>),
playStrategy: json['play_strategy'] == null
? null
: PlayStrategy.fromJson(
json['play_strategy'] as Map<String, dynamic>),
positive: json['positive'] == null
? null
: Positive.fromJson(json['positive'] as Map<String, dynamic>),
publish: json['publish'] == null
? null
: Publish.fromJson(json['publish'] as Map<String, dynamic>),
rating: json['rating'] == null
? null
: Rating.fromJson(json['rating'] as Map<String, dynamic>),
record: json['record'] as String?,
rights: json['rights'] == null
? null
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
seasonId: json['season_id'] as int?,
seasonTitle: json['season_title'] as String?,
seasons: (json['seasons'] as List<dynamic>?)
?.map((e) => Season.fromJson(e as Map<String, dynamic>))
.toList(),
section: (json['section'] as List<dynamic>?)
?.map((e) => Section.fromJson(e as Map<String, dynamic>))
.toList(),
series: json['series'] == null
? null
: Series.fromJson(json['series'] as Map<String, dynamic>),
shareCopy: json['share_copy'] as String?,
shareSubTitle: json['share_sub_title'] as String?,
shareUrl: json['share_url'] as String?,
show: json['show'] == null
? null
: Show.fromJson(json['show'] as Map<String, dynamic>),
showSeasonType: json['show_season_type'] as int?,
squareCover: json['square_cover'] as String?,
staff: json['staff'] as String?,
stat: json['stat'] == null
? null
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
status: json['status'] as int?,
styles: json['styles'],
subtitle: json['subtitle'] as String?,
title: json['title'] as String?,
total: json['total'] as int?,
type: json['type'] as int?,
upInfo: json['up_info'] == null
? null
: UpInfo.fromJson(json['up_info'] as Map<String, dynamic>),
userStatus: json['user_status'] == null
? null
: UserStatus.fromJson(json['user_status'] as Map<String, dynamic>),
);
activity: json['activity'] == null
? null
: Activity.fromJson(json['activity'] as Map<String, dynamic>),
actors: json['actors'] as String?,
alias: json['alias'] as String?,
areas: (json['areas'] as List<dynamic>?)
?.map((e) => Area.fromJson(e as Map<String, dynamic>))
.toList(),
bkgCover: json['bkg_cover'] as String?,
cover: json['cover'] as String?,
deliveryFragmentVideo: json['delivery_fragment_video'] as bool?,
enableVt: json['enable_vt'] as bool?,
episodes: (json['episodes'] as List<dynamic>?)
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
.toList(),
evaluate: json['evaluate'] as String?,
freya: json['freya'] == null
? null
: Freya.fromJson(json['freya'] as Map<String, dynamic>),
hideEpVvVtDm: json['hide_ep_vv_vt_dm'] as int?,
iconFont: json['icon_font'] == null
? null
: IconFont.fromJson(json['icon_font'] as Map<String, dynamic>),
jpTitle: json['jp_title'] as String?,
link: json['link'] as String?,
mediaId: json['media_id'] as int?,
mode: json['mode'] as int?,
newEp: json['new_ep'] == null
? null
: NewEp.fromJson(json['new_ep'] as Map<String, dynamic>),
payment: json['payment'] == null
? null
: Payment.fromJson(json['payment'] as Map<String, dynamic>),
playStrategy: json['play_strategy'] == null
? null
: PlayStrategy.fromJson(json['play_strategy'] as Map<String, dynamic>),
positive: json['positive'] == null
? null
: Positive.fromJson(json['positive'] as Map<String, dynamic>),
publish: json['publish'] == null
? null
: Publish.fromJson(json['publish'] as Map<String, dynamic>),
rating: json['rating'] == null
? null
: Rating.fromJson(json['rating'] as Map<String, dynamic>),
record: json['record'] as String?,
rights: json['rights'] == null
? null
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
seasonId: json['season_id'] as int?,
seasonTitle: json['season_title'] as String?,
seasons: (json['seasons'] as List<dynamic>?)
?.map((e) => Season.fromJson(e as Map<String, dynamic>))
.toList(),
section: (json['section'] as List<dynamic>?)
?.map((e) => Section.fromJson(e as Map<String, dynamic>))
.toList(),
series: json['series'] == null
? null
: Series.fromJson(json['series'] as Map<String, dynamic>),
shareCopy: json['share_copy'] as String?,
shareSubTitle: json['share_sub_title'] as String?,
shareUrl: json['share_url'] as String?,
show: json['show'] == null
? null
: Show.fromJson(json['show'] as Map<String, dynamic>),
showSeasonType: json['show_season_type'] as int?,
squareCover: json['square_cover'] as String?,
staff: json['staff'] as String?,
stat: json['stat'] == null
? null
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
status: json['status'] as int?,
styles: json['styles'],
subtitle: json['subtitle'] as String?,
title: json['title'] as String?,
total: json['total'] as int?,
type: json['type'] as int?,
upInfo: json['up_info'] == null
? null
: UpInfo.fromJson(json['up_info'] as Map<String, dynamic>),
userStatus: json['user_status'] == null
? null
: UserStatus.fromJson(json['user_status'] as Map<String, dynamic>),
);
}

View File

@@ -6,8 +6,8 @@ class Rights {
Rights({this.allowDm, this.allowDownload, this.areaLimit});
factory Rights.fromJson(Map<String, dynamic> json) => Rights(
allowDm: json['allow_dm'] as int?,
allowDownload: json['allow_download'] as int?,
areaLimit: json['area_limit'] as int?,
);
allowDm: json['allow_dm'] as int?,
allowDownload: json['allow_download'] as int?,
areaLimit: json['area_limit'] as int?,
);
}

View File

@@ -37,27 +37,27 @@ class Season {
});
factory Season.fromJson(Map<String, dynamic> json) => Season(
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?,
enableVt: json['enable_vt'] as bool?,
horizontalCover1610: json['horizontal_cover_1610'] as String?,
horizontalCover169: json['horizontal_cover_169'] as String?,
iconFont: json['icon_font'] == null
? null
: IconFont.fromJson(json['icon_font'] as Map<String, dynamic>),
mediaId: json['media_id'] as int?,
newEp: json['new_ep'] == null
? null
: NewEp.fromJson(json['new_ep'] as Map<String, dynamic>),
seasonId: json['season_id'] as int?,
seasonTitle: json['season_title'] as String?,
seasonType: json['season_type'] as int?,
stat: json['stat'] == null
? null
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
);
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?,
enableVt: json['enable_vt'] as bool?,
horizontalCover1610: json['horizontal_cover_1610'] as String?,
horizontalCover169: json['horizontal_cover_169'] as String?,
iconFont: json['icon_font'] == null
? null
: IconFont.fromJson(json['icon_font'] as Map<String, dynamic>),
mediaId: json['media_id'] as int?,
newEp: json['new_ep'] == null
? null
: NewEp.fromJson(json['new_ep'] as Map<String, dynamic>),
seasonId: json['season_id'] as int?,
seasonTitle: json['season_title'] as String?,
seasonType: json['season_type'] as int?,
stat: json['stat'] == null
? null
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
);
}

View File

@@ -22,15 +22,15 @@ class Section {
});
factory Section.fromJson(Map<String, dynamic> json) => Section(
attr: json['attr'] as int?,
episodeId: json['episode_id'] as int?,
episodeIds: json['episode_ids'] as List<dynamic>?,
episodes: (json['episodes'] as List<dynamic>?)
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as int?,
title: json['title'] as String?,
type: json['type'] as int?,
type2: json['type2'] as int?,
);
attr: json['attr'] as int?,
episodeId: json['episode_id'] as int?,
episodeIds: json['episode_ids'] as List<dynamic>?,
episodes: (json['episodes'] as List<dynamic>?)
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as int?,
title: json['title'] as String?,
type: json['type'] as int?,
type2: json['type2'] as int?,
);
}

View File

@@ -6,8 +6,8 @@ class Series {
Series({this.displayType, this.seriesId, this.seriesTitle});
factory Series.fromJson(Map<String, dynamic> json) => Series(
displayType: json['display_type'] as int?,
seriesId: json['series_id'] as int?,
seriesTitle: json['series_title'] as String?,
);
displayType: json['display_type'] as int?,
seriesId: json['series_id'] as int?,
seriesTitle: json['series_title'] as String?,
);
}

View File

@@ -4,6 +4,6 @@ class Show {
Show({this.wideScreen});
factory Show.fromJson(Map<String, dynamic> json) => Show(
wideScreen: json['wide_screen'] as int?,
);
wideScreen: json['wide_screen'] as int?,
);
}

View File

@@ -8,11 +8,11 @@ class Skip {
Skip({this.ed, this.op});
factory Skip.fromJson(Map<String, dynamic> json) => Skip(
ed: json['ed'] == null
? null
: Ed.fromJson(json['ed'] as Map<String, dynamic>),
op: json['op'] == null
? null
: Op.fromJson(json['op'] as Map<String, dynamic>),
);
ed: json['ed'] == null
? null
: Ed.fromJson(json['ed'] as Map<String, dynamic>),
op: json['op'] == null
? null
: Op.fromJson(json['op'] as Map<String, dynamic>),
);
}

View File

@@ -24,15 +24,15 @@ class Stat {
});
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
coins: json["coins"],
danmakus: json["danmakus"],
favorite: json["favorite"],
favorites: json["favorites"],
followText: json["follow_text"],
likes: json["likes"],
reply: json["reply"],
share: json["share"],
views: json["views"],
vt: json["vt"],
);
coins: json["coins"],
danmakus: json["danmakus"],
favorite: json["favorite"],
favorites: json["favorites"],
followText: json["follow_text"],
likes: json["likes"],
reply: json["reply"],
share: json["share"],
views: json["views"],
vt: json["vt"],
);
}

View File

@@ -11,14 +11,14 @@ class StatForUnity {
StatForUnity({this.coin, this.danmaku, this.likes, this.reply, this.vt});
factory StatForUnity.fromJson(Map<String, dynamic> json) => StatForUnity(
coin: json['coin'] as num?,
danmaku: json['danmaku'] == null
? null
: Danmaku.fromJson(json['danmaku'] as Map<String, dynamic>),
likes: json['likes'] as int?,
reply: json['reply'] as int?,
vt: json['vt'] == null
? null
: Vt.fromJson(json['vt'] as Map<String, dynamic>),
);
coin: json['coin'] as num?,
danmaku: json['danmaku'] == null
? null
: Danmaku.fromJson(json['danmaku'] as Map<String, dynamic>),
likes: json['likes'] as int?,
reply: json['reply'] as int?,
vt: json['vt'] == null
? null
: Vt.fromJson(json['vt'] as Map<String, dynamic>),
);
}

View File

@@ -26,16 +26,16 @@ class UpInfo {
});
factory UpInfo.fromJson(Map<String, dynamic> json) => UpInfo(
avatar: json['avatar'] as String?,
avatarSubscriptUrl: json['avatar_subscript_url'] as String?,
follower: json['follower'] as int?,
isFollow: json['is_follow'] as int?,
mid: json['mid'] as int?,
nicknameColor: json['nickname_color'] as String?,
themeType: json['theme_type'] as int?,
uname: json['uname'] as String?,
verifyType: json['verify_type'] as int?,
vipStatus: json['vip_status'] as int?,
vipType: json['vip_type'] as int?,
);
avatar: json['avatar'] as String?,
avatarSubscriptUrl: json['avatar_subscript_url'] as String?,
follower: json['follower'] as int?,
isFollow: json['is_follow'] as int?,
mid: json['mid'] as int?,
nicknameColor: json['nickname_color'] as String?,
themeType: json['theme_type'] as int?,
uname: json['uname'] as String?,
verifyType: json['verify_type'] as int?,
vipStatus: json['vip_status'] as int?,
vipType: json['vip_type'] as int?,
);
}

View File

@@ -24,16 +24,16 @@ class UserStatus {
});
factory UserStatus.fromJson(Map<String, dynamic> json) => UserStatus(
areaLimit: json['area_limit'] as int?,
banAreaShow: json['ban_area_show'] as int?,
follow: json['follow'] as int?,
followStatus: json['follow_status'] as int?,
login: json['login'] as int?,
pay: json['pay'] as int?,
payPackPaid: json['pay_pack_paid'] as int?,
sponsor: json['sponsor'] as int?,
progress: json['progress'] == null
? null
: UserProgress.fromJson(json['progress']),
);
areaLimit: json['area_limit'] as int?,
banAreaShow: json['ban_area_show'] as int?,
follow: json['follow'] as int?,
followStatus: json['follow_status'] as int?,
login: json['login'] as int?,
pay: json['pay'] as int?,
payPackPaid: json['pay_pack_paid'] as int?,
sponsor: json['sponsor'] as int?,
progress: json['progress'] == null
? null
: UserProgress.fromJson(json['progress']),
);
}

View File

@@ -7,9 +7,9 @@ class Vt {
Vt({this.icon, this.pureText, this.text, this.value});
factory Vt.fromJson(Map<String, dynamic> json) => Vt(
icon: json['icon'] as String?,
pureText: json['pure_text'] as String?,
text: json['text'] as String?,
value: json['value'] as int?,
);
icon: json['icon'] as String?,
pureText: json['pure_text'] as String?,
text: json['text'] as String?,
value: json['value'] as int?,
);
}