opt live room

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-04 14:51:09 +08:00
parent 50efe1e24c
commit f50b1d2beb
3 changed files with 42 additions and 13 deletions

View File

@@ -15,7 +15,9 @@ class RoomInfoModel {
roomId = json['room_id'];
liveStatus = json['live_status'];
liveTime = json['live_time'];
playurlInfo = PlayurlInfo.fromJson(json['playurl_info']);
playurlInfo = json['playurl_info'] == null
? null
: PlayurlInfo.fromJson(json['playurl_info']);
isPortrait = json['is_portrait'];
}
}
@@ -28,7 +30,8 @@ class PlayurlInfo {
Playurl? playurl;
PlayurlInfo.fromJson(Map<String, dynamic> json) {
playurl = Playurl.fromJson(json['playurl']);
playurl =
json['playurl'] == null ? null : Playurl.fromJson(json['playurl']);
}
}