mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-01 23:59:50 +08:00
@@ -8,12 +8,11 @@ class AnchorInfo {
|
||||
AnchorInfo({this.baseInfo, this.relationInfo});
|
||||
|
||||
factory AnchorInfo.fromJson(Map<String, dynamic> json) => AnchorInfo(
|
||||
baseInfo: json['base_info'] == null
|
||||
? null
|
||||
: BaseInfo.fromJson(json['base_info'] as Map<String, dynamic>),
|
||||
relationInfo: json['relation_info'] == null
|
||||
? null
|
||||
: RelationInfo.fromJson(
|
||||
json['relation_info'] as Map<String, dynamic>),
|
||||
);
|
||||
baseInfo: json['base_info'] == null
|
||||
? null
|
||||
: BaseInfo.fromJson(json['base_info'] as Map<String, dynamic>),
|
||||
relationInfo: json['relation_info'] == null
|
||||
? null
|
||||
: RelationInfo.fromJson(json['relation_info'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class AreaMaskInfo {
|
||||
AreaMaskInfo({this.areaMasks});
|
||||
|
||||
factory AreaMaskInfo.fromJson(Map<String, dynamic> json) => AreaMaskInfo(
|
||||
areaMasks: json['area_masks'] == null
|
||||
? null
|
||||
: AreaMasks.fromJson(json['area_masks'] as Map<String, dynamic>),
|
||||
);
|
||||
areaMasks: json['area_masks'] == null
|
||||
? null
|
||||
: AreaMasks.fromJson(json['area_masks'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class AreaMasks {
|
||||
AreaMasks({this.horizontalMasks, this.verticalMasks, this.fullMask});
|
||||
|
||||
factory AreaMasks.fromJson(Map<String, dynamic> json) => AreaMasks(
|
||||
horizontalMasks: json['horizontal_masks'] as dynamic,
|
||||
verticalMasks: json['vertical_masks'] as dynamic,
|
||||
fullMask: json['full_mask'] as dynamic,
|
||||
);
|
||||
horizontalMasks: json['horizontal_masks'] as dynamic,
|
||||
verticalMasks: json['vertical_masks'] as dynamic,
|
||||
fullMask: json['full_mask'] as dynamic,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,11 +8,10 @@ class BaseInfo {
|
||||
BaseInfo({this.uname, this.face, this.officialInfo});
|
||||
|
||||
factory BaseInfo.fromJson(Map<String, dynamic> json) => BaseInfo(
|
||||
uname: json['uname'] as String?,
|
||||
face: json['face'] as String?,
|
||||
officialInfo: json['official_info'] == null
|
||||
? null
|
||||
: OfficialInfo.fromJson(
|
||||
json['official_info'] as Map<String, dynamic>),
|
||||
);
|
||||
uname: json['uname'] as String?,
|
||||
face: json['face'] as String?,
|
||||
officialInfo: json['official_info'] == null
|
||||
? null
|
||||
: OfficialInfo.fromJson(json['official_info'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class BlockInfo {
|
||||
BlockInfo({this.block, this.desc, this.business});
|
||||
|
||||
factory BlockInfo.fromJson(Map<String, dynamic> json) => BlockInfo(
|
||||
block: json['block'] as bool?,
|
||||
desc: json['desc'] as String?,
|
||||
business: json['business'] as int?,
|
||||
);
|
||||
block: json['block'] as bool?,
|
||||
desc: json['desc'] as String?,
|
||||
business: json['business'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -36,35 +36,34 @@ class RoomInfoH5Data {
|
||||
});
|
||||
|
||||
factory RoomInfoH5Data.fromJson(Map<String, dynamic> json) => RoomInfoH5Data(
|
||||
roomInfo: json['room_info'] == null
|
||||
? null
|
||||
: RoomInfo.fromJson(json['room_info'] as Map<String, dynamic>),
|
||||
anchorInfo: json['anchor_info'] == null
|
||||
? null
|
||||
: AnchorInfo.fromJson(json['anchor_info'] as Map<String, dynamic>),
|
||||
newSwitchInfo: json['new_switch_info'] == null
|
||||
? null
|
||||
: NewSwitchInfo.fromJson(
|
||||
json['new_switch_info'] as Map<String, dynamic>),
|
||||
bannerInfo: json['banner_info'] as List<dynamic>?,
|
||||
isRoomFeed: json['is_room_feed'] as int?,
|
||||
tabInfo: json['tab_info'] as List<dynamic>?,
|
||||
newsInfo: json['news_info'] == null
|
||||
? null
|
||||
: NewsInfo.fromJson(json['news_info'] as Map<String, dynamic>),
|
||||
watchedShow: json['watched_show'] == null
|
||||
? null
|
||||
: WatchedShow.fromJson(
|
||||
json['watched_show'] as Map<String, dynamic>),
|
||||
likeInfoV3: json['like_info_v3'] == null
|
||||
? null
|
||||
: LikeInfoV3.fromJson(json['like_info_v3'] as Map<String, dynamic>),
|
||||
blockInfo: json['block_info'] == null
|
||||
? null
|
||||
: BlockInfo.fromJson(json['block_info'] as Map<String, dynamic>),
|
||||
areaMaskInfo: json['area_mask_info'] == null
|
||||
? null
|
||||
: AreaMaskInfo.fromJson(
|
||||
json['area_mask_info'] as Map<String, dynamic>),
|
||||
);
|
||||
roomInfo: json['room_info'] == null
|
||||
? null
|
||||
: RoomInfo.fromJson(json['room_info'] as Map<String, dynamic>),
|
||||
anchorInfo: json['anchor_info'] == null
|
||||
? null
|
||||
: AnchorInfo.fromJson(json['anchor_info'] as Map<String, dynamic>),
|
||||
newSwitchInfo: json['new_switch_info'] == null
|
||||
? null
|
||||
: NewSwitchInfo.fromJson(
|
||||
json['new_switch_info'] as Map<String, dynamic>,
|
||||
),
|
||||
bannerInfo: json['banner_info'] as List<dynamic>?,
|
||||
isRoomFeed: json['is_room_feed'] as int?,
|
||||
tabInfo: json['tab_info'] as List<dynamic>?,
|
||||
newsInfo: json['news_info'] == null
|
||||
? null
|
||||
: NewsInfo.fromJson(json['news_info'] as Map<String, dynamic>),
|
||||
watchedShow: json['watched_show'] == null
|
||||
? null
|
||||
: WatchedShow.fromJson(json['watched_show'] as Map<String, dynamic>),
|
||||
likeInfoV3: json['like_info_v3'] == null
|
||||
? null
|
||||
: LikeInfoV3.fromJson(json['like_info_v3'] as Map<String, dynamic>),
|
||||
blockInfo: json['block_info'] == null
|
||||
? null
|
||||
: BlockInfo.fromJson(json['block_info'] as Map<String, dynamic>),
|
||||
areaMaskInfo: json['area_mask_info'] == null
|
||||
? null
|
||||
: AreaMaskInfo.fromJson(json['area_mask_info'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Frame {
|
||||
Frame({this.name, this.value, this.desc});
|
||||
|
||||
factory Frame.fromJson(Map<String, dynamic> json) => Frame(
|
||||
name: json['name'] as String?,
|
||||
value: json['value'] as String?,
|
||||
desc: json['desc'] as String?,
|
||||
);
|
||||
name: json['name'] as String?,
|
||||
value: json['value'] as String?,
|
||||
desc: json['desc'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -44,25 +44,25 @@ class LikeInfoV3 {
|
||||
});
|
||||
|
||||
factory LikeInfoV3.fromJson(Map<String, dynamic> json) => LikeInfoV3(
|
||||
totalLikes: json['total_likes'] as int?,
|
||||
clickBlock: json['click_block'] as bool?,
|
||||
countBlock: json['count_block'] as bool?,
|
||||
guildEmoText: json['guild_emo_text'] as String?,
|
||||
guildDmText: json['guild_dm_text'] as String?,
|
||||
likeDmText: json['like_dm_text'] as String?,
|
||||
handIcons: (json['hand_icons'] as List?)?.cast(),
|
||||
dmIcons: (json['dm_icons'] as List?)?.cast(),
|
||||
eggshellsIcon: json['eggshells_icon'] as String?,
|
||||
countShowTime: json['count_show_time'] as int?,
|
||||
processIcon: json['process_icon'] as String?,
|
||||
processColor: json['process_color'] as String?,
|
||||
reportClickLimit: json['report_click_limit'] as int?,
|
||||
reportTimeMin: json['report_time_min'] as int?,
|
||||
reportTimeMax: json['report_time_max'] as int?,
|
||||
icon: json['icon'] as String?,
|
||||
cooldown: (json['cooldown'] as num?)?.toDouble(),
|
||||
handUseFace: json['hand_use_face'] as bool?,
|
||||
guideIconUrls: (json['guide_icon_urls'] as List?)?.cast(),
|
||||
guideIconRatio: (json['guide_icon_ratio'] as num?)?.toDouble(),
|
||||
);
|
||||
totalLikes: json['total_likes'] as int?,
|
||||
clickBlock: json['click_block'] as bool?,
|
||||
countBlock: json['count_block'] as bool?,
|
||||
guildEmoText: json['guild_emo_text'] as String?,
|
||||
guildDmText: json['guild_dm_text'] as String?,
|
||||
likeDmText: json['like_dm_text'] as String?,
|
||||
handIcons: (json['hand_icons'] as List?)?.cast(),
|
||||
dmIcons: (json['dm_icons'] as List?)?.cast(),
|
||||
eggshellsIcon: json['eggshells_icon'] as String?,
|
||||
countShowTime: json['count_show_time'] as int?,
|
||||
processIcon: json['process_icon'] as String?,
|
||||
processColor: json['process_color'] as String?,
|
||||
reportClickLimit: json['report_click_limit'] as int?,
|
||||
reportTimeMin: json['report_time_min'] as int?,
|
||||
reportTimeMax: json['report_time_max'] as int?,
|
||||
icon: json['icon'] as String?,
|
||||
cooldown: (json['cooldown'] as num?)?.toDouble(),
|
||||
handUseFace: json['hand_use_face'] as bool?,
|
||||
guideIconUrls: (json['guide_icon_urls'] as List?)?.cast(),
|
||||
guideIconRatio: (json['guide_icon_ratio'] as num?)?.toDouble(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ class NewSwitchInfo {
|
||||
});
|
||||
|
||||
factory NewSwitchInfo.fromJson(Map<String, dynamic> json) => NewSwitchInfo(
|
||||
roomInfoPopularity: json['room-info-popularity'] as int?,
|
||||
roomTab: json['room-tab'] as int?,
|
||||
roomPlayerWatermark: json['room-player-watermark'] as int?,
|
||||
roomRecommendLiveOff: json['room-recommend-live_off'] as int?,
|
||||
brandUserCardSwitch: json['brand-user-card-switch'] as int?,
|
||||
brandFollowSwitch: json['brand-follow-switch'] as int?,
|
||||
);
|
||||
roomInfoPopularity: json['room-info-popularity'] as int?,
|
||||
roomTab: json['room-tab'] as int?,
|
||||
roomPlayerWatermark: json['room-player-watermark'] as int?,
|
||||
roomRecommendLiveOff: json['room-recommend-live_off'] as int?,
|
||||
brandUserCardSwitch: json['brand-user-card-switch'] as int?,
|
||||
brandFollowSwitch: json['brand-follow-switch'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class NewsInfo {
|
||||
NewsInfo({this.uid, this.ctime, this.content});
|
||||
|
||||
factory NewsInfo.fromJson(Map<String, dynamic> json) => NewsInfo(
|
||||
uid: json['uid'] as int?,
|
||||
ctime: json['ctime'] as String?,
|
||||
content: json['content'] as String?,
|
||||
);
|
||||
uid: json['uid'] as int?,
|
||||
ctime: json['ctime'] as String?,
|
||||
content: json['content'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,10 +14,10 @@ class OfficialInfo {
|
||||
});
|
||||
|
||||
factory OfficialInfo.fromJson(Map<String, dynamic> json) => OfficialInfo(
|
||||
role: json['role'] as int?,
|
||||
title: json['title'] as String?,
|
||||
desc: json['desc'] as String?,
|
||||
isNft: json['is_nft'] as int?,
|
||||
nftDmark: json['nft_dmark'] as String?,
|
||||
);
|
||||
role: json['role'] as int?,
|
||||
title: json['title'] as String?,
|
||||
desc: json['desc'] as String?,
|
||||
isNft: json['is_nft'] as int?,
|
||||
nftDmark: json['nft_dmark'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Pendants {
|
||||
Pendants({this.frame});
|
||||
|
||||
factory Pendants.fromJson(Map<String, dynamic> json) => Pendants(
|
||||
frame: json['frame'] == null
|
||||
? null
|
||||
: Frame.fromJson(json['frame'] as Map<String, dynamic>),
|
||||
);
|
||||
frame: json['frame'] == null
|
||||
? null
|
||||
: Frame.fromJson(json['frame'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class RelationInfo {
|
||||
RelationInfo({this.attention});
|
||||
|
||||
factory RelationInfo.fromJson(Map<String, dynamic> json) => RelationInfo(
|
||||
attention: json['attention'] as int?,
|
||||
);
|
||||
attention: json['attention'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -42,25 +42,25 @@ class RoomInfo {
|
||||
});
|
||||
|
||||
factory RoomInfo.fromJson(Map<String, dynamic> json) => RoomInfo(
|
||||
uid: json['uid'] as int?,
|
||||
roomId: json['room_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
description: json['description'] as String?,
|
||||
liveStatus: json['live_status'] as int?,
|
||||
liveStartTime: json['live_start_time'] as int?,
|
||||
areaId: json['area_id'] as int?,
|
||||
areaName: json['area_name'] as String?,
|
||||
parentAreaId: json['parent_area_id'] as int?,
|
||||
parentAreaName: json['parent_area_name'] as String?,
|
||||
online: json['online'] as int?,
|
||||
keyframe: json['keyframe'] as String?,
|
||||
background: json['background'] as String?,
|
||||
appBackground: json['app_background'] as String?,
|
||||
pendants: json['pendants'] == null
|
||||
? null
|
||||
: Pendants.fromJson(json['pendants'] as Map<String, dynamic>),
|
||||
subSessionKey: json['sub_session_key'] as String?,
|
||||
liveId: json['live_id'] as String?,
|
||||
);
|
||||
uid: json['uid'] as int?,
|
||||
roomId: json['room_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
description: json['description'] as String?,
|
||||
liveStatus: json['live_status'] as int?,
|
||||
liveStartTime: json['live_start_time'] as int?,
|
||||
areaId: json['area_id'] as int?,
|
||||
areaName: json['area_name'] as String?,
|
||||
parentAreaId: json['parent_area_id'] as int?,
|
||||
parentAreaName: json['parent_area_name'] as String?,
|
||||
online: json['online'] as int?,
|
||||
keyframe: json['keyframe'] as String?,
|
||||
background: json['background'] as String?,
|
||||
appBackground: json['app_background'] as String?,
|
||||
pendants: json['pendants'] == null
|
||||
? null
|
||||
: Pendants.fromJson(json['pendants'] as Map<String, dynamic>),
|
||||
subSessionKey: json['sub_session_key'] as String?,
|
||||
liveId: json['live_id'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user