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 Achieve {
Achieve({this.isDefault, this.image, this.achieveUrl});
factory Achieve.fromJson(Map<String, dynamic> json) => Achieve(
isDefault: json['is_default'] as bool?,
image: json['image'] as String?,
achieveUrl: json['achieve_url'] as String?,
);
isDefault: json['is_default'] as bool?,
image: json['image'] as String?,
achieveUrl: json['achieve_url'] as String?,
);
}

View File

@@ -11,16 +11,17 @@ class Archive {
Archive({this.episodicButton, this.order, this.count, this.item});
factory Archive.fromJson(Map<String, dynamic> json) => Archive(
episodicButton: json['episodic_button'] == null
? null
: EpisodicButton.fromJson(
json['episodic_button'] as Map<String, dynamic>),
order: (json['order'] as List<dynamic>?)
?.map((e) => Order.fromJson(e as Map<String, dynamic>))
.toList(),
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
episodicButton: json['episodic_button'] == null
? null
: EpisodicButton.fromJson(
json['episodic_button'] as Map<String, dynamic>,
),
order: (json['order'] as List<dynamic>?)
?.map((e) => Order.fromJson(e as Map<String, dynamic>))
.toList(),
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
}

View File

@@ -10,13 +10,13 @@ class Article {
Article({this.count, this.item, this.listsCount, this.lists});
factory Article.fromJson(Map<String, dynamic> json) => Article(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArticleItem.fromJson(e as Map<String, dynamic>))
.toList(),
listsCount: json['lists_count'] as int?,
lists: (json['lists'] as List<dynamic>?)
?.map((e) => ListItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArticleItem.fromJson(e as Map<String, dynamic>))
.toList(),
listsCount: json['lists_count'] as int?,
lists: (json['lists'] as List<dynamic>?)
?.map((e) => ListItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
}

View File

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

View File

@@ -7,9 +7,9 @@ class Audios {
Audios({this.count, this.item});
factory Audios.fromJson(Map<String, dynamic> json) => Audios(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceAudioItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceAudioItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
}

View File

@@ -22,21 +22,22 @@ 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?,
pendant: json['pendant'] == null
? null
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
officialVerify: json['official_verify'] == null
? null
: OfficialVerify.fromJson(
json['official_verify'] as Map<String, dynamic>),
nameplate: json['nameplate'] == null
? null
: Nameplate.fromJson(json['nameplate'] as Map<String, dynamic>),
vip: json['vip'] == null
? null
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
);
mid: json['mid'] as int?,
name: json['name'] as String?,
face: json['face'] as String?,
pendant: json['pendant'] == null
? null
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
officialVerify: json['official_verify'] == null
? null
: OfficialVerify.fromJson(
json['official_verify'] as Map<String, dynamic>,
),
nameplate: json['nameplate'] == null
? null
: Nameplate.fromJson(json['nameplate'] as Map<String, dynamic>),
vip: json['vip'] == null
? null
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
);
}

View File

@@ -20,13 +20,13 @@ class Badge {
});
factory Badge.fromJson(Map<String, dynamic> json) => Badge(
text: json['text'] as String?,
textColor: json['text_color'] as String?,
textColorNight: json['text_color_night'] as String?,
bgColor: json['bg_color'] as String?,
bgColorNight: json['bg_color_night'] as String?,
borderColor: json['border_color'] as String?,
borderColorNight: json['border_color_night'] as String?,
bgStyle: json['bg_style'] as int?,
);
text: json['text'] as String?,
textColor: json['text_color'] as String?,
textColorNight: json['text_color_night'] as String?,
bgColor: json['bg_color'] as String?,
bgColorNight: json['bg_color_night'] as String?,
borderColor: json['border_color'] as String?,
borderColorNight: json['border_color_night'] as String?,
bgStyle: json['bg_style'] as int?,
);
}

View File

@@ -6,8 +6,8 @@ class Button {
Button({this.type, this.text, this.jumpUrl});
factory Button.fromJson(Map<String, dynamic> json) => Button(
type: json['type'] as int?,
text: json['text'] as String?,
jumpUrl: json['jump_url'] as String?,
);
type: json['type'] as int?,
text: json['text'] as String?,
jumpUrl: json['jump_url'] as String?,
);
}

View File

@@ -105,83 +105,87 @@ class SpaceCard {
});
factory SpaceCard.fromJson(Map<String, dynamic> json) => SpaceCard(
mid: json['mid'] as String?,
name: json['name'] as String?,
approve: json['approve'] as bool?,
rank: json['rank'] as String?,
face: json['face'] as String?,
displayRank: json['DisplayRank'] as String?,
regtime: json['regtime'] as int?,
spacesta: json['spacesta'] as int?,
birthday: json['birthday'] as String?,
place: json['place'] as String?,
description: json['description'] as String?,
article: json['article'] as int?,
attentions: json['attentions'] as dynamic,
fans: json['fans'] as int?,
friend: json['friend'] as int?,
attention: json['attention'] as int?,
sign: json['sign'] as String?,
levelInfo: json['level_info'] == null
? null
: LevelInfo.fromJson(json['level_info'] as Map<String, dynamic>),
pendant: json['pendant'] == null
? null
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
nameplate: json['nameplate'] == null
? null
: Nameplate.fromJson(json['nameplate'] as Map<String, dynamic>),
officialVerify: json['official_verify'] == null
? null
: OfficialVerify.fromJson(
json['official_verify'] as Map<String, dynamic>),
professionVerify: json['profession_verify'] == null
? null
: ProfessionVerify.fromJson(
json['profession_verify'] as Map<String, dynamic>),
vip: json['vip'] == null
? null
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
silence: json['silence'] as int?,
endTime: json['end_time'] as int?,
silenceUrl: json['silence_url'] as String?,
likes: json['likes'] == null
? null
: Likes.fromJson(json['likes'] as Map<String, dynamic>),
achieve: json['achieve'] == null
? null
: Achieve.fromJson(json['achieve'] as Map<String, dynamic>),
relation: json['relation'] == null
? null
: SpaceRelation.fromJson(json['relation'] as Map<String, dynamic>),
isDeleted: json['is_deleted'] as int?,
honours: json['honours'] == null
? null
: Honours.fromJson(json['honours'] as Map<String, dynamic>),
liveFansWearing: json['live_fans_wearing'] == null
? null
: LiveFansWearing.fromJson(
json['live_fans_wearing'] as Map<String, dynamic>),
spaceTag: (json['space_tag'] as List<dynamic>?)
?.where((e) => (e?['title'] as String?)?.startsWith('IP') == true)
.map((e) => SpaceTag.fromJson(e as Map<String, dynamic>))
.toList(),
faceNftNew: json['face_nft_new'] as int?,
hasFaceNft: json['has_face_nft'] as bool?,
nftCertificate: json['nft_certificate'] == null
? null
: NftCertificate.fromJson(
json['nft_certificate'] as Map<String, dynamic>),
entrance: json['entrance'] == null
? null
: Entrance.fromJson(json['entrance'] as Map<String, dynamic>),
nftId: json['nft_id'] as String?,
nftFaceIcon: json['nft_face_icon'] as dynamic,
digitalId: json['digital_id'] as String?,
digitalType: json['digital_type'] as int?,
hasDigitalAsset: json['has_digital_asset'] as bool?,
prInfo: json['pr_info'] == null
? null
: SpacePrInfo.fromJson(json['pr_info'] as Map<String, dynamic>),
);
mid: json['mid'] as String?,
name: json['name'] as String?,
approve: json['approve'] as bool?,
rank: json['rank'] as String?,
face: json['face'] as String?,
displayRank: json['DisplayRank'] as String?,
regtime: json['regtime'] as int?,
spacesta: json['spacesta'] as int?,
birthday: json['birthday'] as String?,
place: json['place'] as String?,
description: json['description'] as String?,
article: json['article'] as int?,
attentions: json['attentions'] as dynamic,
fans: json['fans'] as int?,
friend: json['friend'] as int?,
attention: json['attention'] as int?,
sign: json['sign'] as String?,
levelInfo: json['level_info'] == null
? null
: LevelInfo.fromJson(json['level_info'] as Map<String, dynamic>),
pendant: json['pendant'] == null
? null
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
nameplate: json['nameplate'] == null
? null
: Nameplate.fromJson(json['nameplate'] as Map<String, dynamic>),
officialVerify: json['official_verify'] == null
? null
: OfficialVerify.fromJson(
json['official_verify'] as Map<String, dynamic>,
),
professionVerify: json['profession_verify'] == null
? null
: ProfessionVerify.fromJson(
json['profession_verify'] as Map<String, dynamic>,
),
vip: json['vip'] == null
? null
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
silence: json['silence'] as int?,
endTime: json['end_time'] as int?,
silenceUrl: json['silence_url'] as String?,
likes: json['likes'] == null
? null
: Likes.fromJson(json['likes'] as Map<String, dynamic>),
achieve: json['achieve'] == null
? null
: Achieve.fromJson(json['achieve'] as Map<String, dynamic>),
relation: json['relation'] == null
? null
: SpaceRelation.fromJson(json['relation'] as Map<String, dynamic>),
isDeleted: json['is_deleted'] as int?,
honours: json['honours'] == null
? null
: Honours.fromJson(json['honours'] as Map<String, dynamic>),
liveFansWearing: json['live_fans_wearing'] == null
? null
: LiveFansWearing.fromJson(
json['live_fans_wearing'] as Map<String, dynamic>,
),
spaceTag: (json['space_tag'] as List<dynamic>?)
?.where((e) => (e?['title'] as String?)?.startsWith('IP') == true)
.map((e) => SpaceTag.fromJson(e as Map<String, dynamic>))
.toList(),
faceNftNew: json['face_nft_new'] as int?,
hasFaceNft: json['has_face_nft'] as bool?,
nftCertificate: json['nft_certificate'] == null
? null
: NftCertificate.fromJson(
json['nft_certificate'] as Map<String, dynamic>,
),
entrance: json['entrance'] == null
? null
: Entrance.fromJson(json['entrance'] as Map<String, dynamic>),
nftId: json['nft_id'] as String?,
nftFaceIcon: json['nft_face_icon'] as dynamic,
digitalId: json['digital_id'] as String?,
digitalType: json['digital_type'] as int?,
hasDigitalAsset: json['has_digital_asset'] as bool?,
prInfo: json['pr_info'] == null
? null
: SpacePrInfo.fromJson(json['pr_info'] as Map<String, dynamic>),
);
}

View File

@@ -6,8 +6,8 @@ class Category {
Category({this.id, this.parentId, this.name});
factory Category.fromJson(Map<String, dynamic> json) => Category(
id: json['id'] as int?,
parentId: json['parent_id'] as int?,
name: json['name'] as String?,
);
id: json['id'] as int?,
parentId: json['parent_id'] as int?,
name: json['name'] as String?,
);
}

View File

@@ -7,9 +7,9 @@ class Cheese {
Cheese({this.count, this.item});
factory Cheese.fromJson(Map<String, dynamic> json) => Cheese(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
}

View File

@@ -7,9 +7,9 @@ class CoinArchive {
CoinArchive({this.count, this.item});
factory CoinArchive.fromJson(Map<String, dynamic> json) => CoinArchive(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
}

View File

@@ -9,12 +9,12 @@ class ColorConfig {
ColorConfig({this.isDarkModeAware, this.day, this.night});
factory ColorConfig.fromJson(Map<String, dynamic> json) => ColorConfig(
isDarkModeAware: json['is_dark_mode_aware'] as bool?,
day: json['day'] == null
? null
: Day.fromJson(json['day'] as Map<String, dynamic>),
night: json['night'] == null
? null
: Night.fromJson(json['night'] as Map<String, dynamic>),
);
isDarkModeAware: json['is_dark_mode_aware'] as bool?,
day: json['day'] == null
? null
: Day.fromJson(json['day'] as Map<String, dynamic>),
night: json['night'] == null
? null
: Night.fromJson(json['night'] as Map<String, dynamic>),
);
}

View File

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

View File

@@ -7,9 +7,9 @@ class Comic {
Comic({this.count, this.item});
factory Comic.fromJson(Map<String, dynamic> json) => Comic(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
}

View File

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

View File

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

View File

@@ -164,7 +164,8 @@ class SpaceData {
nftShowModule = json['nft_show_module'] == null
? null
: NftShowModule.fromJson(
json['nft_show_module'] as Map<String, dynamic>);
json['nft_show_module'] as Map<String, dynamic>,
);
tab2 = (json['tab2'] as List<dynamic>?)
?.map((e) => SpaceTab2.fromJson(e as Map<String, dynamic>))
.toList();
@@ -177,7 +178,8 @@ class SpaceData {
?.map((e) => SpaceButtonList.fromJson(e as Map<String, dynamic>))
.toList();
relSpecial = (json['rel_special'] as num?)?.toInt();
hasItem = archive?.item?.isNotEmpty == true ||
hasItem =
archive?.item?.isNotEmpty == true ||
favourite2?.item?.isNotEmpty == true ||
coinArchive?.item?.isNotEmpty == true ||
likeArchive?.item?.isNotEmpty == true ||

View File

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

View File

@@ -28,17 +28,17 @@ class DigitalInfo {
});
factory DigitalInfo.fromJson(Map<String, dynamic> json) => DigitalInfo(
active: json['active'] as bool?,
jumpUrl: json['jump_url'] as String?,
nftType: json['nft_type'] as int?,
backgroundHandle: json['background_handle'] as int?,
animationFirstFrame: json['animation_first_frame'] as String?,
musicAlbum: json['music_album'] as dynamic,
animation: json['animation'] as dynamic,
nftRegionTitle: json['nft_region_title'] as String?,
cardId: json['card_id'] as int?,
cutSpaceBg: json['cut_space_bg'] as String?,
partType: json['part_type'] as int?,
itemJumpUrl: json['item_jump_url'] as String?,
);
active: json['active'] as bool?,
jumpUrl: json['jump_url'] as String?,
nftType: json['nft_type'] as int?,
backgroundHandle: json['background_handle'] as int?,
animationFirstFrame: json['animation_first_frame'] as String?,
musicAlbum: json['music_album'] as dynamic,
animation: json['animation'] as dynamic,
nftRegionTitle: json['nft_region_title'] as String?,
cardId: json['card_id'] as int?,
cutSpaceBg: json['cut_space_bg'] as String?,
partType: json['part_type'] as int?,
itemJumpUrl: json['item_jump_url'] as String?,
);
}

View File

@@ -12,9 +12,9 @@ class Display {
});
factory Display.fromJson(Map<String, dynamic> json) => Display(
bgThemeLight: json['bg_theme_light'] as String?,
bgThemeNight: json['bg_theme_night'] as String?,
nftPoster: json['nft_poster'] as String?,
nftRaw: json['nft_raw'] as String?,
);
bgThemeLight: json['bg_theme_light'] as String?,
bgThemeNight: json['bg_theme_night'] as String?,
nftPoster: json['nft_poster'] as String?,
nftRaw: json['nft_raw'] as String?,
);
}

View File

@@ -8,11 +8,10 @@ class Draw {
Draw({this.drawType, this.fillMode, this.colorConfig});
factory Draw.fromJson(Map<String, dynamic> json) => Draw(
drawType: json['draw_type'] as int?,
fillMode: json['fill_mode'] as int?,
colorConfig: json['color_config'] == null
? null
: ColorConfig.fromJson(
json['color_config'] as Map<String, dynamic>),
);
drawType: json['draw_type'] as int?,
fillMode: json['fill_mode'] as int?,
colorConfig: json['color_config'] == null
? null
: ColorConfig.fromJson(json['color_config'] as Map<String, dynamic>),
);
}

View File

@@ -7,9 +7,9 @@ class DrawSrc {
DrawSrc({this.srcType, this.draw});
factory DrawSrc.fromJson(Map<String, dynamic> json) => DrawSrc(
srcType: json['src_type'] as int?,
draw: json['draw'] == null
? null
: Draw.fromJson(json['draw'] as Map<String, dynamic>),
);
srcType: json['src_type'] as int?,
draw: json['draw'] == null
? null
: Draw.fromJson(json['draw'] as Map<String, dynamic>),
);
}

View File

@@ -33,22 +33,22 @@ class Elec {
});
factory Elec.fromJson(Map<String, dynamic> json) => Elec(
show: json['show'] as bool?,
total: json['total'] as int?,
count: json['count'] as int?,
elecNum: json['elec_num'] as int?,
list: (json['list'] as List<dynamic>?)
?.map((e) => ListItem.fromJson(e as Map<String, dynamic>))
.toList(),
elecSet: json['elec_set'] == null
? null
: ElecSet.fromJson(json['elec_set'] as Map<String, dynamic>),
state: json['state'] as int?,
upowerTitle: json['upower_title'] as String?,
upowerJumpUrl: json['upower_jump_url'] as String?,
upowerIconUrl: json['upower_icon_url'] as String?,
upowerState: json['upower_state'] as int?,
rankTitle: json['rank_title'] as String?,
rankUrl: json['rank_url'] as String?,
);
show: json['show'] as bool?,
total: json['total'] as int?,
count: json['count'] as int?,
elecNum: json['elec_num'] as int?,
list: (json['list'] as List<dynamic>?)
?.map((e) => ListItem.fromJson(e as Map<String, dynamic>))
.toList(),
elecSet: json['elec_set'] == null
? null
: ElecSet.fromJson(json['elec_set'] as Map<String, dynamic>),
state: json['state'] as int?,
upowerTitle: json['upower_title'] as String?,
upowerJumpUrl: json['upower_jump_url'] as String?,
upowerIconUrl: json['upower_icon_url'] as String?,
upowerState: json['upower_state'] as int?,
rankTitle: json['rank_title'] as String?,
rankUrl: json['rank_url'] as String?,
);
}

View File

@@ -28,17 +28,17 @@ class ElecList {
});
factory ElecList.fromJson(Map<String, dynamic> json) => ElecList(
title: json['title'] as String?,
elecNum: json['elec_num'] as int?,
isCustomize: json['is_customize'] as int?,
bpNum: json['bp_num'] as String?,
minBp: json['min_bp'] as String?,
maxBp: json['max_bp'] as String?,
bpNumFen: json['bp_num_fen'] as int?,
isDefault: json['is_default'] as int?,
minElec: json['min_elec'] as int?,
maxElec: json['max_elec'] as int?,
minBpFen: json['min_bp_fen'] as int?,
maxBpFen: json['max_bp_fen'] as int?,
);
title: json['title'] as String?,
elecNum: json['elec_num'] as int?,
isCustomize: json['is_customize'] as int?,
bpNum: json['bp_num'] as String?,
minBp: json['min_bp'] as String?,
maxBp: json['max_bp'] as String?,
bpNumFen: json['bp_num_fen'] as int?,
isDefault: json['is_default'] as int?,
minElec: json['min_elec'] as int?,
maxElec: json['max_elec'] as int?,
minBpFen: json['min_bp_fen'] as int?,
maxBpFen: json['max_bp_fen'] as int?,
);
}

View File

@@ -18,13 +18,13 @@ class ElecSet {
});
factory ElecSet.fromJson(Map<String, dynamic> json) => ElecSet(
elecTheme: json['elec_theme'] as int?,
rmbRate: json['rmb_rate'] as int?,
integrityRate: json['integrity_rate'] as int?,
roundMode: json['round_mode'] as int?,
elecList: (json['elec_list'] as List<dynamic>?)
?.map((e) => ElecList.fromJson(e as Map<String, dynamic>))
.toList(),
batteryItemDesc: json['battery_item_desc'] as String?,
);
elecTheme: json['elec_theme'] as int?,
rmbRate: json['rmb_rate'] as int?,
integrityRate: json['integrity_rate'] as int?,
roundMode: json['round_mode'] as int?,
elecList: (json['elec_list'] as List<dynamic>?)
?.map((e) => ElecList.fromJson(e as Map<String, dynamic>))
.toList(),
batteryItemDesc: json['battery_item_desc'] as String?,
);
}

View File

@@ -6,8 +6,8 @@ class Entrance {
Entrance({this.icon, this.jumpUrl, this.isShowEntrance});
factory Entrance.fromJson(Map<String, dynamic> json) => Entrance(
icon: json['icon'] as String?,
jumpUrl: json['jump_url'] as String?,
isShowEntrance: json['is_show_entrance'] as bool?,
);
icon: json['icon'] as String?,
jumpUrl: json['jump_url'] as String?,
isShowEntrance: json['is_show_entrance'] as bool?,
);
}

View File

@@ -7,9 +7,9 @@ class Entry {
Entry({this.icon, this.jumpLink, this.accessibility, this.needLogin});
factory Entry.fromJson(Map<String, dynamic> json) => Entry(
icon: json['icon'] as String?,
jumpLink: json['jump_link'] as String?,
accessibility: json['accessibility'] as String?,
needLogin: json['need_login'] as bool?,
);
icon: json['icon'] as String?,
jumpLink: json['jump_link'] as String?,
accessibility: json['accessibility'] as String?,
needLogin: json['need_login'] as bool?,
);
}

View File

@@ -14,11 +14,11 @@ class Extra {
});
factory Extra.fromJson(Map<String, dynamic> json) => Extra(
card: json['card'] == null
? null
: SpaceCard.fromJson(json['card'] as Map<String, dynamic>),
salesType: json['sales_type'] as int?,
upzoneEntranceType: json['upzone_entrance_type'] as int?,
upzoneEntranceReportId: json['upzone_entrance_report_id'] as String?,
);
card: json['card'] == null
? null
: SpaceCard.fromJson(json['card'] as Map<String, dynamic>),
salesType: json['sales_type'] as int?,
upzoneEntranceType: json['upzone_entrance_type'] as int?,
upzoneEntranceReportId: json['upzone_entrance_report_id'] as String?,
);
}

View File

@@ -7,9 +7,9 @@ class Favourite2 {
Favourite2({this.count, this.item});
factory Favourite2.fromJson(Map<String, dynamic> json) => Favourite2(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceFavItemModel.fromJson(e))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceFavItemModel.fromJson(e))
.toList(),
);
}

View File

@@ -10,14 +10,14 @@ class GeneralSpec {
GeneralSpec({this.posSpec, this.sizeSpec, this.renderSpec});
factory GeneralSpec.fromJson(Map<String, dynamic> json) => GeneralSpec(
posSpec: json['pos_spec'] == null
? null
: PosSpec.fromJson(json['pos_spec'] as Map<String, dynamic>),
sizeSpec: json['size_spec'] == null
? null
: SizeSpec.fromJson(json['size_spec'] as Map<String, dynamic>),
renderSpec: json['render_spec'] == null
? null
: RenderSpec.fromJson(json['render_spec'] as Map<String, dynamic>),
);
posSpec: json['pos_spec'] == null
? null
: PosSpec.fromJson(json['pos_spec'] as Map<String, dynamic>),
sizeSpec: json['size_spec'] == null
? null
: SizeSpec.fromJson(json['size_spec'] as Map<String, dynamic>),
renderSpec: json['render_spec'] == null
? null
: RenderSpec.fromJson(json['render_spec'] as Map<String, dynamic>),
);
}

View File

@@ -10,12 +10,12 @@ class Guard {
Guard({this.uri, this.desc, this.highLight, this.item, this.buttonMsg});
factory Guard.fromJson(Map<String, dynamic> json) => Guard(
uri: json['uri'] as String?,
desc: json['desc'] as String?,
highLight: json['high_light'] as String?,
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
buttonMsg: json['button_msg'] as String?,
);
uri: json['uri'] as String?,
desc: json['desc'] as String?,
highLight: json['high_light'] as String?,
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
buttonMsg: json['button_msg'] as String?,
);
}

View File

@@ -7,9 +7,9 @@ class Honours {
Honours({this.colour, this.tags});
factory Honours.fromJson(Map<String, dynamic> json) => Honours(
colour: json['colour'] == null
? null
: Colour.fromJson(json['colour'] as Map<String, dynamic>),
tags: json['tags'] as List<dynamic>?,
);
colour: json['colour'] == null
? null
: Colour.fromJson(json['colour'] as Map<String, dynamic>),
tags: json['tags'] as List<dynamic>?,
);
}

View File

@@ -25,25 +25,27 @@ class SpaceImages {
});
factory SpaceImages.fromJson(Map<String, dynamic> json) => SpaceImages(
imgUrl: json['imgUrl'] as String?,
nightImgurl: json['night_imgurl'] as String?,
goodsAvailable: json['goods_available'] as bool?,
purchaseButton: json['purchase_button'] == null
? null
: PurchaseButton.fromJson(
json['purchase_button'] as Map<String, dynamic>),
entranceButton: json['entrance_button'] == null
? null
: EntranceButton.fromJson(
json['entrance_button'] as Map<String, dynamic>),
digitalInfo: json['digital_info'] == null
? null
: DigitalInfo.fromJson(
json['digital_info'] as Map<String, dynamic>),
showDigital: json['show_digital'] as bool?,
collectionTopSimple: json['collection_top_simple'] == null
? null
: CollectionTopSimple.fromJson(
json['collection_top_simple'] as Map<String, dynamic>),
);
imgUrl: json['imgUrl'] as String?,
nightImgurl: json['night_imgurl'] as String?,
goodsAvailable: json['goods_available'] as bool?,
purchaseButton: json['purchase_button'] == null
? null
: PurchaseButton.fromJson(
json['purchase_button'] as Map<String, dynamic>,
),
entranceButton: json['entrance_button'] == null
? null
: EntranceButton.fromJson(
json['entrance_button'] as Map<String, dynamic>,
),
digitalInfo: json['digital_info'] == null
? null
: DigitalInfo.fromJson(json['digital_info'] as Map<String, dynamic>),
showDigital: json['show_digital'] as bool?,
collectionTopSimple: json['collection_top_simple'] == null
? null
: CollectionTopSimple.fromJson(
json['collection_top_simple'] as Map<String, dynamic>,
),
);
}

View File

@@ -70,39 +70,39 @@ class Item {
});
factory Item.fromJson(Map<String, dynamic> json) => Item(
title: json['title'] as String?,
subtitle: json['subtitle'] as String?,
tname: json['tname'] as String?,
cover: json['cover'] as String?,
coverIcon: json['cover_icon'] as String?,
uri: json['uri'] as String?,
param: json['param'] as String?,
goto: json['goto'] as String?,
length: json['length'] as String?,
duration: json['duration'] as int?,
isPopular: json['is_popular'] as bool?,
isSteins: json['is_steins'] as bool?,
isUgcpay: json['is_ugcpay'] as bool?,
isCooperation: json['is_cooperation'] as bool?,
isPgc: json['is_pgc'] as bool?,
isLivePlayback: json['is_live_playback'] as bool?,
isPugv: json['is_pugv'] as bool?,
isFold: json['is_fold'] as bool?,
isOneself: json['is_oneself'] as bool?,
play: json['play'] as int?,
danmaku: json['danmaku'] as int?,
ctime: json['ctime'] as int?,
ugcPay: json['ugc_pay'] as int?,
badges: (json['badges'] as List<dynamic>?)
?.map((e) => Badge.fromJson(e as Map<String, dynamic>))
.toList(),
author: json['author'] as String?,
state: json['state'] as bool?,
bvid: json['bvid'] as String?,
videos: json['videos'] as int?,
firstCid: json['first_cid'] as int?,
viewContent: json['view_content'] as String?,
iconType: json['icon_type'] as int?,
publishTimeText: json['publish_time_text'] as String?,
);
title: json['title'] as String?,
subtitle: json['subtitle'] as String?,
tname: json['tname'] as String?,
cover: json['cover'] as String?,
coverIcon: json['cover_icon'] as String?,
uri: json['uri'] as String?,
param: json['param'] as String?,
goto: json['goto'] as String?,
length: json['length'] as String?,
duration: json['duration'] as int?,
isPopular: json['is_popular'] as bool?,
isSteins: json['is_steins'] as bool?,
isUgcpay: json['is_ugcpay'] as bool?,
isCooperation: json['is_cooperation'] as bool?,
isPgc: json['is_pgc'] as bool?,
isLivePlayback: json['is_live_playback'] as bool?,
isPugv: json['is_pugv'] as bool?,
isFold: json['is_fold'] as bool?,
isOneself: json['is_oneself'] as bool?,
play: json['play'] as int?,
danmaku: json['danmaku'] as int?,
ctime: json['ctime'] as int?,
ugcPay: json['ugc_pay'] as int?,
badges: (json['badges'] as List<dynamic>?)
?.map((e) => Badge.fromJson(e as Map<String, dynamic>))
.toList(),
author: json['author'] as String?,
state: json['state'] as bool?,
bvid: json['bvid'] as String?,
videos: json['videos'] as int?,
firstCid: json['first_cid'] as int?,
viewContent: json['view_content'] as String?,
iconType: json['icon_type'] as int?,
publishTimeText: json['publish_time_text'] as String?,
);
}

View File

@@ -20,13 +20,13 @@ class Label {
});
factory Label.fromJson(Map<String, dynamic> json) => Label(
path: json['path'] as String?,
text: json['text'] as String?,
labelTheme: json['label_theme'] as String?,
textColor: json['text_color'] as String?,
bgStyle: json['bg_style'] as int?,
bgColor: json['bg_color'] as String?,
borderColor: json['border_color'] as String?,
image: json['image'] as String?,
);
path: json['path'] as String?,
text: json['text'] as String?,
labelTheme: json['label_theme'] as String?,
textColor: json['text_color'] as String?,
bgStyle: json['bg_style'] as int?,
bgColor: json['bg_color'] as String?,
borderColor: json['border_color'] as String?,
image: json['image'] as String?,
);
}

View File

@@ -18,14 +18,15 @@ class LevelInfo {
});
factory LevelInfo.fromJson(Map<String, dynamic> json) => LevelInfo(
currentLevel: json['current_level'] as int?,
currentMin: json['current_min'] as int?,
currentExp: json['current_exp'] as int?,
nextExp: json['next_exp'] as dynamic,
identity: json['identity'] as int?,
seniorInquiry: json['senior_inquiry'] == null
? null
: SeniorInquiry.fromJson(
json['senior_inquiry'] as Map<String, dynamic>),
);
currentLevel: json['current_level'] as int?,
currentMin: json['current_min'] as int?,
currentExp: json['current_exp'] as int?,
nextExp: json['next_exp'] as dynamic,
identity: json['identity'] as int?,
seniorInquiry: json['senior_inquiry'] == null
? null
: SeniorInquiry.fromJson(
json['senior_inquiry'] as Map<String, dynamic>,
),
);
}

View File

@@ -7,9 +7,9 @@ class LikeArchive {
LikeArchive({this.count, this.item});
factory LikeArchive.fromJson(Map<String, dynamic> json) => LikeArchive(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
}

View File

@@ -5,7 +5,7 @@ class Likes {
Likes({this.likeNum, this.skrTip});
factory Likes.fromJson(Map<String, dynamic> json) => Likes(
likeNum: json['like_num'] as int?,
skrTip: json['skr_tip'] as String?,
);
likeNum: json['like_num'] as int?,
skrTip: json['skr_tip'] as String?,
);
}

View File

@@ -20,13 +20,13 @@ class ListItem {
});
factory ListItem.fromJson(Map<String, dynamic> json) => ListItem(
payMid: json['pay_mid'] as int?,
rank: json['rank'] as int?,
trendType: json['trend_type'] as int?,
message: json['message'] as String?,
mid: json['mid'] as int?,
vipInfo: json['vip_info'] as dynamic,
uname: json['uname'] as String?,
avatar: json['avatar'] as String?,
);
payMid: json['pay_mid'] as int?,
rank: json['rank'] as int?,
trendType: json['trend_type'] as int?,
message: json['message'] as String?,
mid: json['mid'] as int?,
vipInfo: json['vip_info'] as dynamic,
uname: json['uname'] as String?,
avatar: json['avatar'] as String?,
);
}

View File

@@ -26,16 +26,16 @@ class Live {
});
factory Live.fromJson(Map<String, dynamic> json) => Live(
roomStatus: json['roomStatus'] as int?,
roundStatus: json['roundStatus'] as int?,
liveStatus: json['liveStatus'] as int?,
url: json['url'] as String?,
title: json['title'] as String?,
cover: json['cover'] as String?,
online: json['online'] as int?,
roomid: json['roomid'] as int?,
broadcastType: json['broadcast_type'] as int?,
onlineHidden: json['online_hidden'] as int?,
link: json['link'] as String?,
);
roomStatus: json['roomStatus'] as int?,
roundStatus: json['roundStatus'] as int?,
liveStatus: json['liveStatus'] as int?,
url: json['url'] as String?,
title: json['title'] as String?,
cover: json['cover'] as String?,
online: json['online'] as int?,
roomid: json['roomid'] as int?,
broadcastType: json['broadcast_type'] as int?,
onlineHidden: json['online_hidden'] as int?,
link: json['link'] as String?,
);
}

View File

@@ -20,13 +20,13 @@ class Media {
});
factory Media.fromJson(Map<String, dynamic> json) => Media(
score: json['score'] as int?,
mediaId: json['media_id'] as int?,
title: json['title'] as String?,
cover: json['cover'] as String?,
area: json['area'] as String?,
typeId: json['type_id'] as int?,
typeName: json['type_name'] as String?,
spoiler: json['spoiler'] as int?,
);
score: json['score'] as int?,
mediaId: json['media_id'] as int?,
title: json['title'] as String?,
cover: json['cover'] as String?,
area: json['area'] as String?,
typeId: json['type_id'] as int?,
typeName: json['type_name'] as String?,
spoiler: json['spoiler'] as int?,
);
}

View File

@@ -16,11 +16,11 @@ class Nameplate {
});
factory Nameplate.fromJson(Map<String, dynamic> json) => Nameplate(
nid: json['nid'] as int?,
name: json['name'] as String?,
image: json['image'] as String?,
imageSmall: json['image_small'] as String?,
level: json['level'] as String?,
condition: json['condition'] as String?,
);
nid: json['nid'] as int?,
name: json['name'] as String?,
image: json['image'] as String?,
imageSmall: json['image_small'] as String?,
level: json['level'] as String?,
condition: json['condition'] as String?,
);
}

View File

@@ -18,13 +18,13 @@ class Nft {
});
factory Nft.fromJson(Map<String, dynamic> json) => Nft(
itemName: json['item_name'] as String?,
issuer: json['issuer'] as String?,
serialNumber: json['serial_number'] as String?,
detailUrl: json['detail_url'] as String?,
nftStatus: json['nft_status'] as int?,
display: json['display'] == null
? null
: Display.fromJson(json['display'] as Map<String, dynamic>),
);
itemName: json['item_name'] as String?,
issuer: json['issuer'] as String?,
serialNumber: json['serial_number'] as String?,
detailUrl: json['detail_url'] as String?,
nftStatus: json['nft_status'] as int?,
display: json['display'] == null
? null
: Display.fromJson(json['display'] as Map<String, dynamic>),
);
}

View File

@@ -14,11 +14,11 @@ class NftShowModule {
});
factory NftShowModule.fromJson(Map<String, dynamic> json) => NftShowModule(
total: json['total'] as int?,
artsMoreJump: json['arts_more_jump'] as String?,
nfts: (json['nfts'] as List<dynamic>?)
?.map((e) => Nft.fromJson(e as Map<String, dynamic>))
.toList(),
floorTitle: json['floor_title'] as String?,
);
total: json['total'] as int?,
artsMoreJump: json['arts_more_jump'] as String?,
nfts: (json['nfts'] as List<dynamic>?)
?.map((e) => Nft.fromJson(e as Map<String, dynamic>))
.toList(),
floorTitle: json['floor_title'] as String?,
);
}

View File

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

View File

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

View File

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

View File

@@ -6,8 +6,8 @@ class PosSpec {
PosSpec({this.coordinatePos, this.axisX, this.axisY});
factory PosSpec.fromJson(Map<String, dynamic> json) => PosSpec(
coordinatePos: json['coordinate_pos'] as int?,
axisX: (json['axis_x'] as num?)?.toDouble(),
axisY: (json['axis_y'] as num?)?.toDouble(),
);
coordinatePos: json['coordinate_pos'] as int?,
axisX: (json['axis_x'] as num?)?.toDouble(),
axisY: (json['axis_y'] as num?)?.toDouble(),
);
}

View File

@@ -6,8 +6,8 @@ class Preference {
Preference({this.collectionPublic, this.garbFirstGain, this.orderType});
factory Preference.fromJson(Map<String, dynamic> json) => Preference(
collectionPublic: json['collection_public'] as bool?,
garbFirstGain: json['garb_first_gain'] as String?,
orderType: json['order_type'] as int?,
);
collectionPublic: json['collection_public'] as bool?,
garbFirstGain: json['garb_first_gain'] as String?,
orderType: json['order_type'] as int?,
);
}

View File

@@ -10,8 +10,8 @@ class SpaceRelation {
});
factory SpaceRelation.fromJson(Map<String, dynamic> json) => SpaceRelation(
status: json['status'] as int?,
isFollow: json['is_follow'] as int?,
isFollowed: json['is_followed'] as int?,
);
status: json['status'] as int?,
isFollow: json['is_follow'] as int?,
isFollowed: json['is_followed'] as int?,
);
}

View File

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

View File

@@ -6,8 +6,8 @@ class ResNativeDraw {
ResNativeDraw({this.drawSrc});
factory ResNativeDraw.fromJson(Map<String, dynamic> json) => ResNativeDraw(
drawSrc: json['draw_src'] == null
? null
: DrawSrc.fromJson(json['draw_src'] as Map<String, dynamic>),
);
drawSrc: json['draw_src'] == null
? null
: DrawSrc.fromJson(json['draw_src'] as Map<String, dynamic>),
);
}

View File

@@ -7,10 +7,11 @@ class Resource {
Resource({this.resType, this.resNativeDraw});
factory Resource.fromJson(Map<String, dynamic> json) => Resource(
resType: json['res_type'] as int?,
resNativeDraw: json['res_native_draw'] == null
? null
: ResNativeDraw.fromJson(
json['res_native_draw'] as Map<String, dynamic>),
);
resType: json['res_type'] as int?,
resNativeDraw: json['res_native_draw'] == null
? null
: ResNativeDraw.fromJson(
json['res_native_draw'] as Map<String, dynamic>,
),
);
}

View File

@@ -7,9 +7,9 @@ class SpaceSeason {
SpaceSeason({this.count, this.item});
factory SpaceSeason.fromJson(Map<String, dynamic> json) => SpaceSeason(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => SpaceArchiveItem.fromJson(e))
.toList(),
);
}

View File

@@ -5,7 +5,7 @@ class SeniorInquiry {
SeniorInquiry({this.inquiryText, this.inquiryUrl});
factory SeniorInquiry.fromJson(Map<String, dynamic> json) => SeniorInquiry(
inquiryText: json['inquiry_text'] as String?,
inquiryUrl: json['inquiry_url'] as String?,
);
inquiryText: json['inquiry_text'] as String?,
inquiryUrl: json['inquiry_url'] as String?,
);
}

View File

@@ -6,8 +6,8 @@ class SpaceSeries {
SpaceSeries({this.item});
factory SpaceSeries.fromJson(Map<String, dynamic> json) => SpaceSeries(
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
}

View File

@@ -42,24 +42,24 @@ class SpaceSetting {
});
factory SpaceSetting.fromJson(Map<String, dynamic> json) => SpaceSetting(
channel: json['channel'] as int?,
favVideo: json['fav_video'] as int?,
coinsVideo: json['coins_video'] as int?,
likesVideo: json['likes_video'] as int?,
bangumi: json['bangumi'] as int?,
playedGame: json['played_game'] as int?,
groups: json['groups'] as int?,
comic: json['comic'] as int?,
bbq: json['bbq'] as int?,
dressUp: json['dress_up'] as int?,
disableFollowing: json['disable_following'] as int?,
livePlayback: json['live_playback'] as int?,
closeSpaceMedal: json['close_space_medal'] as int?,
onlyShowWearing: json['only_show_wearing'] as int?,
disableShowSchool: json['disable_show_school'] as int?,
disableShowNft: json['disable_show_nft'] as int?,
disableShowFans: json['disable_show_fans'] as int?,
chargeVideo: json['charge_video'] as int?,
lessonVideo: json['lesson_video'] as int?,
);
channel: json['channel'] as int?,
favVideo: json['fav_video'] as int?,
coinsVideo: json['coins_video'] as int?,
likesVideo: json['likes_video'] as int?,
bangumi: json['bangumi'] as int?,
playedGame: json['played_game'] as int?,
groups: json['groups'] as int?,
comic: json['comic'] as int?,
bbq: json['bbq'] as int?,
dressUp: json['dress_up'] as int?,
disableFollowing: json['disable_following'] as int?,
livePlayback: json['live_playback'] as int?,
closeSpaceMedal: json['close_space_medal'] as int?,
onlyShowWearing: json['only_show_wearing'] as int?,
disableShowSchool: json['disable_show_school'] as int?,
disableShowNft: json['disable_show_nft'] as int?,
disableShowFans: json['disable_show_fans'] as int?,
chargeVideo: json['charge_video'] as int?,
lessonVideo: json['lesson_video'] as int?,
);
}

View File

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

View File

@@ -20,13 +20,13 @@ class SpaceTag {
});
factory SpaceTag.fromJson(Map<String, dynamic> json) => SpaceTag(
type: json['type'] as String?,
title: json['title'] as String?,
textColor: json['text_color'] as String?,
nightTextColor: json['night_text_color'] as String?,
backgroundColor: json['background_color'] as String?,
nightBackgroundColor: json['night_background_color'] as String?,
uri: json['uri'] as String?,
icon: json['icon'] as String?,
);
type: json['type'] as String?,
title: json['title'] as String?,
textColor: json['text_color'] as String?,
nightTextColor: json['night_text_color'] as String?,
backgroundColor: json['background_color'] as String?,
nightBackgroundColor: json['night_background_color'] as String?,
uri: json['uri'] as String?,
icon: json['icon'] as String?,
);
}

View File

@@ -20,13 +20,13 @@ class Stats {
});
factory Stats.fromJson(Map<String, dynamic> json) => Stats(
view: json['view'] as int?,
favorite: json['favorite'] as int?,
like: json['like'] as int?,
dislike: json['dislike'] as int?,
reply: json['reply'] as int?,
share: json['share'] as int?,
coin: json['coin'] as num?,
dynam1c: json['dynamic'] as int?,
);
view: json['view'] as int?,
favorite: json['favorite'] as int?,
like: json['like'] as int?,
dislike: json['dislike'] as int?,
reply: json['reply'] as int?,
share: json['share'] as int?,
coin: json['coin'] as num?,
dynam1c: json['dynamic'] as int?,
);
}

View File

@@ -6,12 +6,12 @@ class SpaceTab2 {
const SpaceTab2({this.title, this.param, this.items});
factory SpaceTab2.fromJson(Map<String, dynamic> json) => SpaceTab2(
title: json['title'] as String?,
param: json['param'] as String?,
items: (json['items'] as List<dynamic>?)
?.map((e) => SpaceTab2Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
title: json['title'] as String?,
param: json['param'] as String?,
items: (json['items'] as List<dynamic>?)
?.map((e) => SpaceTab2Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
}
class SpaceTab2Item {
@@ -32,17 +32,17 @@ class SpaceTab2Item {
});
factory SpaceTab2Item.fromJson(Map<String, dynamic> json) => SpaceTab2Item(
title: json["title"],
param: json["param"],
items: (json["items"] as List?)
?.map((e) => SpaceTab2SubItem.fromJson(e))
.toList(),
filter: (json["filter"] as List?)
?.map((e) => SpaceTabFilter.fromJson(e))
.toList(),
seasonId: json['season_id'],
seriesId: json['series_id'],
);
title: json["title"],
param: json["param"],
items: (json["items"] as List?)
?.map((e) => SpaceTab2SubItem.fromJson(e))
.toList(),
filter: (json["filter"] as List?)
?.map((e) => SpaceTabFilter.fromJson(e))
.toList(),
seasonId: json['season_id'],
seriesId: json['series_id'],
);
}
class SpaceTab2SubItem {
@@ -84,10 +84,10 @@ class SpaceTabFilter {
});
factory SpaceTabFilter.fromJson(Map<String, dynamic> json) => SpaceTabFilter(
text: json["text"],
meta: json["meta"] ?? 'all',
tabName: json["tab_name"],
);
text: json["text"],
meta: json["meta"] ?? 'all',
tabName: json["tab_name"],
);
@override
bool operator ==(Object other) {

View File

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

View File

@@ -7,9 +7,9 @@ class UgcSeason {
UgcSeason({this.count, this.item});
factory UgcSeason.fromJson(Map<String, dynamic> json) => UgcSeason(
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
count: json['count'] as int?,
item: (json['item'] as List<dynamic>?)
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
.toList(),
);
}