mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 20:12:35 +08:00
@@ -135,81 +135,82 @@ class MatchContest {
|
||||
});
|
||||
|
||||
factory MatchContest.fromJson(Map<String, dynamic> json) => MatchContest(
|
||||
id: json['id'] as int?,
|
||||
gameStage: json['game_stage'] as String?,
|
||||
stime: json['stime'] as int?,
|
||||
etime: json['etime'] as int?,
|
||||
homeId: json['home_id'] as int?,
|
||||
awayId: json['away_id'] as int?,
|
||||
homeScore: json['home_score'] as int?,
|
||||
awayScore: json['away_score'] as int?,
|
||||
liveRoom: json['live_room'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
collection: json['collection'] as int?,
|
||||
collectionBvid: json['collection_bvid'] as String?,
|
||||
gameState: json['game_state'] as int?,
|
||||
dic: json['dic'] as String?,
|
||||
ctime: json['ctime'] as String?,
|
||||
mtime: json['mtime'] as String?,
|
||||
status: json['status'] as int?,
|
||||
sid: json['sid'] as int?,
|
||||
mid: json['mid'] as int?,
|
||||
season: json['season'] == null
|
||||
? null
|
||||
: Season.fromJson(json['season'] as Map<String, dynamic>),
|
||||
homeTeam: json['home_team'] == null
|
||||
? null
|
||||
: MatchTeam.fromJson(json['home_team'] as Map<String, dynamic>),
|
||||
awayTeam: json['away_team'] == null
|
||||
? null
|
||||
: MatchTeam.fromJson(json['away_team'] as Map<String, dynamic>),
|
||||
special: json['special'] as int?,
|
||||
successTeam: json['success_team'] as int?,
|
||||
successTeaminfo: json['success_teaminfo'] == null
|
||||
? null
|
||||
: SuccessTeaminfo.fromJson(
|
||||
json['success_teaminfo'] as Map<String, dynamic>),
|
||||
specialName: json['special_name'] as String?,
|
||||
specialTips: json['special_tips'] as String?,
|
||||
specialImage: json['special_image'] as String?,
|
||||
playback: json['playback'] as String?,
|
||||
collectionUrl: json['collection_url'] as String?,
|
||||
liveUrl: json['live_url'] as String?,
|
||||
dataType: json['data_type'] as int?,
|
||||
matchId: json['match_id'] as int?,
|
||||
guessType: json['guess_type'] as int?,
|
||||
guessShow: json['guess_show'] as int?,
|
||||
bvid: json['bvid'] as String?,
|
||||
gameStage1: json['game_stage1'] as String?,
|
||||
gameStage2: json['game_stage2'] as String?,
|
||||
liveStatus: json['live_status'] as int?,
|
||||
livePopular: json['live_popular'] as int?,
|
||||
liveCover: json['live_cover'] as String?,
|
||||
pushSwitch: json['push_switch'] as int?,
|
||||
liveTitle: json['live_title'] as String?,
|
||||
seriesId: json['series_id'] as int?,
|
||||
contestStatus: json['contest_status'] as int?,
|
||||
contestFreeze: json['contest_freeze'] as int?,
|
||||
startTime: json['start_time'] as int?,
|
||||
endTime: json['end_time'] as int?,
|
||||
title: json['title'] as String?,
|
||||
playBack: json['play_back'] as String?,
|
||||
seasonId: json['season_id'] as int?,
|
||||
isSub: json['is_sub'] as int?,
|
||||
isGuess: json['is_guess'] as int?,
|
||||
home: json['home'] == null
|
||||
? null
|
||||
: HomeAway.fromJson(json['home'] as Map<String, dynamic>),
|
||||
away: json['away'] == null
|
||||
? null
|
||||
: HomeAway.fromJson(json['away'] as Map<String, dynamic>),
|
||||
series: json['series'] as dynamic,
|
||||
prospect: json['prospect'] as String?,
|
||||
afterContestVideo: json['after_contest_video'] as String?,
|
||||
homeSmallScore: json['home_small_score'] as int?,
|
||||
awaySmallScore: json['away_small_score'] as int?,
|
||||
watchPoint: json['watch_point'] as String?,
|
||||
watchPointIcon: json['watch_point_icon'] as String?,
|
||||
hottestPlayer: json['hottest_player'] as dynamic,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
gameStage: json['game_stage'] as String?,
|
||||
stime: json['stime'] as int?,
|
||||
etime: json['etime'] as int?,
|
||||
homeId: json['home_id'] as int?,
|
||||
awayId: json['away_id'] as int?,
|
||||
homeScore: json['home_score'] as int?,
|
||||
awayScore: json['away_score'] as int?,
|
||||
liveRoom: json['live_room'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
collection: json['collection'] as int?,
|
||||
collectionBvid: json['collection_bvid'] as String?,
|
||||
gameState: json['game_state'] as int?,
|
||||
dic: json['dic'] as String?,
|
||||
ctime: json['ctime'] as String?,
|
||||
mtime: json['mtime'] as String?,
|
||||
status: json['status'] as int?,
|
||||
sid: json['sid'] as int?,
|
||||
mid: json['mid'] as int?,
|
||||
season: json['season'] == null
|
||||
? null
|
||||
: Season.fromJson(json['season'] as Map<String, dynamic>),
|
||||
homeTeam: json['home_team'] == null
|
||||
? null
|
||||
: MatchTeam.fromJson(json['home_team'] as Map<String, dynamic>),
|
||||
awayTeam: json['away_team'] == null
|
||||
? null
|
||||
: MatchTeam.fromJson(json['away_team'] as Map<String, dynamic>),
|
||||
special: json['special'] as int?,
|
||||
successTeam: json['success_team'] as int?,
|
||||
successTeaminfo: json['success_teaminfo'] == null
|
||||
? null
|
||||
: SuccessTeaminfo.fromJson(
|
||||
json['success_teaminfo'] as Map<String, dynamic>,
|
||||
),
|
||||
specialName: json['special_name'] as String?,
|
||||
specialTips: json['special_tips'] as String?,
|
||||
specialImage: json['special_image'] as String?,
|
||||
playback: json['playback'] as String?,
|
||||
collectionUrl: json['collection_url'] as String?,
|
||||
liveUrl: json['live_url'] as String?,
|
||||
dataType: json['data_type'] as int?,
|
||||
matchId: json['match_id'] as int?,
|
||||
guessType: json['guess_type'] as int?,
|
||||
guessShow: json['guess_show'] as int?,
|
||||
bvid: json['bvid'] as String?,
|
||||
gameStage1: json['game_stage1'] as String?,
|
||||
gameStage2: json['game_stage2'] as String?,
|
||||
liveStatus: json['live_status'] as int?,
|
||||
livePopular: json['live_popular'] as int?,
|
||||
liveCover: json['live_cover'] as String?,
|
||||
pushSwitch: json['push_switch'] as int?,
|
||||
liveTitle: json['live_title'] as String?,
|
||||
seriesId: json['series_id'] as int?,
|
||||
contestStatus: json['contest_status'] as int?,
|
||||
contestFreeze: json['contest_freeze'] as int?,
|
||||
startTime: json['start_time'] as int?,
|
||||
endTime: json['end_time'] as int?,
|
||||
title: json['title'] as String?,
|
||||
playBack: json['play_back'] as String?,
|
||||
seasonId: json['season_id'] as int?,
|
||||
isSub: json['is_sub'] as int?,
|
||||
isGuess: json['is_guess'] as int?,
|
||||
home: json['home'] == null
|
||||
? null
|
||||
: HomeAway.fromJson(json['home'] as Map<String, dynamic>),
|
||||
away: json['away'] == null
|
||||
? null
|
||||
: HomeAway.fromJson(json['away'] as Map<String, dynamic>),
|
||||
series: json['series'] as dynamic,
|
||||
prospect: json['prospect'] as String?,
|
||||
afterContestVideo: json['after_contest_video'] as String?,
|
||||
homeSmallScore: json['home_small_score'] as int?,
|
||||
awaySmallScore: json['away_small_score'] as int?,
|
||||
watchPoint: json['watch_point'] as String?,
|
||||
watchPointIcon: json['watch_point_icon'] as String?,
|
||||
hottestPlayer: json['hottest_player'] as dynamic,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class MatchInfoData {
|
||||
MatchInfoData({this.contest});
|
||||
|
||||
factory MatchInfoData.fromJson(Map<String, dynamic> json) => MatchInfoData(
|
||||
contest: json['contest'] == null
|
||||
? null
|
||||
: MatchContest.fromJson(json['contest'] as Map<String, dynamic>),
|
||||
);
|
||||
contest: json['contest'] == null
|
||||
? null
|
||||
: MatchContest.fromJson(json['contest'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -26,16 +26,16 @@ class HomeAway {
|
||||
});
|
||||
|
||||
factory HomeAway.fromJson(Map<String, dynamic> json) => HomeAway(
|
||||
id: json['id'] as int?,
|
||||
icon: json['icon'] as String?,
|
||||
name: json['name'] as String?,
|
||||
wins: json['wins'] as int?,
|
||||
region: json['region'] as String?,
|
||||
regionId: json['region_id'] as int?,
|
||||
externalTeamId: json['ExternalTeamId'] as int?,
|
||||
divisionName: json['division_name'] as String?,
|
||||
divisionLogo: json['division_logo'] as String?,
|
||||
playerGradeDetail: json['player_grade_detail'] as dynamic,
|
||||
isSuccessTeam: json['is_success_team'] as bool?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
icon: json['icon'] as String?,
|
||||
name: json['name'] as String?,
|
||||
wins: json['wins'] as int?,
|
||||
region: json['region'] as String?,
|
||||
regionId: json['region_id'] as int?,
|
||||
externalTeamId: json['ExternalTeamId'] as int?,
|
||||
divisionName: json['division_name'] as String?,
|
||||
divisionLogo: json['division_logo'] as String?,
|
||||
playerGradeDetail: json['player_grade_detail'] as dynamic,
|
||||
isSuccessTeam: json['is_success_team'] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -54,30 +54,30 @@ class Season {
|
||||
});
|
||||
|
||||
factory Season.fromJson(Map<String, dynamic> json) => Season(
|
||||
id: json['id'] as int?,
|
||||
mid: json['mid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
subTitle: json['sub_title'] as String?,
|
||||
stime: json['stime'] as int?,
|
||||
etime: json['etime'] as int?,
|
||||
sponsor: json['sponsor'] as String?,
|
||||
logo: json['logo'] as String?,
|
||||
dic: json['dic'] as String?,
|
||||
status: json['status'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
mtime: json['mtime'] as int?,
|
||||
rank: json['rank'] as int?,
|
||||
isApp: json['is_app'] as int?,
|
||||
url: json['url'] as String?,
|
||||
dataFocus: json['data_focus'] as String?,
|
||||
focusUrl: json['focus_url'] as String?,
|
||||
leidaSid: json['leida_sid'] as int?,
|
||||
gameType: json['game_type'] as int?,
|
||||
searchImage: json['search_image'] as String?,
|
||||
syncPlatform: json['sync_platform'] as int?,
|
||||
centreLogo: json['centre_logo'] as String?,
|
||||
centreStatus: json['centre_status'] as int?,
|
||||
centrePcLogo: json['centre_pc_logo'] as String?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
mid: json['mid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
subTitle: json['sub_title'] as String?,
|
||||
stime: json['stime'] as int?,
|
||||
etime: json['etime'] as int?,
|
||||
sponsor: json['sponsor'] as String?,
|
||||
logo: json['logo'] as String?,
|
||||
dic: json['dic'] as String?,
|
||||
status: json['status'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
mtime: json['mtime'] as int?,
|
||||
rank: json['rank'] as int?,
|
||||
isApp: json['is_app'] as int?,
|
||||
url: json['url'] as String?,
|
||||
dataFocus: json['data_focus'] as String?,
|
||||
focusUrl: json['focus_url'] as String?,
|
||||
leidaSid: json['leida_sid'] as int?,
|
||||
gameType: json['game_type'] as int?,
|
||||
searchImage: json['search_image'] as String?,
|
||||
syncPlatform: json['sync_platform'] as int?,
|
||||
centreLogo: json['centre_logo'] as String?,
|
||||
centreStatus: json['centre_status'] as int?,
|
||||
centrePcLogo: json['centre_pc_logo'] as String?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -42,46 +42,46 @@ class MatchTeam {
|
||||
});
|
||||
|
||||
factory MatchTeam.fromJson(Map<String, dynamic> json) => MatchTeam(
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
subTitle: json['sub_title'] as String?,
|
||||
eTitle: json['e_title'] as String?,
|
||||
createTime: json['create_time'] as int?,
|
||||
area: json['area'] as String?,
|
||||
logo: json['logo'] as String?,
|
||||
uid: json['uid'] as int?,
|
||||
members: json['members'] as String?,
|
||||
dic: json['dic'] as String?,
|
||||
isDeleted: json['is_deleted'] as int?,
|
||||
videoUrl: json['video_url'] as String?,
|
||||
profile: json['profile'] as String?,
|
||||
leidaTid: json['leida_tid'] as int?,
|
||||
replyId: json['reply_id'] as int?,
|
||||
teamType: json['team_type'] as int?,
|
||||
regionId: json['region_id'] as int?,
|
||||
divisionName: json['division_name'] as String?,
|
||||
divisionLogo: json['division_logo'] as String?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
subTitle: json['sub_title'] as String?,
|
||||
eTitle: json['e_title'] as String?,
|
||||
createTime: json['create_time'] as int?,
|
||||
area: json['area'] as String?,
|
||||
logo: json['logo'] as String?,
|
||||
uid: json['uid'] as int?,
|
||||
members: json['members'] as String?,
|
||||
dic: json['dic'] as String?,
|
||||
isDeleted: json['is_deleted'] as int?,
|
||||
videoUrl: json['video_url'] as String?,
|
||||
profile: json['profile'] as String?,
|
||||
leidaTid: json['leida_tid'] as int?,
|
||||
replyId: json['reply_id'] as int?,
|
||||
teamType: json['team_type'] as int?,
|
||||
regionId: json['region_id'] as int?,
|
||||
divisionName: json['division_name'] as String?,
|
||||
divisionLogo: json['division_logo'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
'title': title,
|
||||
'sub_title': subTitle,
|
||||
'e_title': eTitle,
|
||||
'create_time': createTime,
|
||||
'area': area,
|
||||
'logo': logo,
|
||||
'uid': uid,
|
||||
'members': members,
|
||||
'dic': dic,
|
||||
'is_deleted': isDeleted,
|
||||
'video_url': videoUrl,
|
||||
'profile': profile,
|
||||
'leida_tid': leidaTid,
|
||||
'reply_id': replyId,
|
||||
'team_type': teamType,
|
||||
'region_id': regionId,
|
||||
'division_name': divisionName,
|
||||
'division_logo': divisionLogo,
|
||||
};
|
||||
'id': id,
|
||||
'title': title,
|
||||
'sub_title': subTitle,
|
||||
'e_title': eTitle,
|
||||
'create_time': createTime,
|
||||
'area': area,
|
||||
'logo': logo,
|
||||
'uid': uid,
|
||||
'members': members,
|
||||
'dic': dic,
|
||||
'is_deleted': isDeleted,
|
||||
'video_url': videoUrl,
|
||||
'profile': profile,
|
||||
'leida_tid': leidaTid,
|
||||
'reply_id': replyId,
|
||||
'team_type': teamType,
|
||||
'region_id': regionId,
|
||||
'division_name': divisionName,
|
||||
'division_logo': divisionLogo,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user