class RoomInfoModel { RoomInfoModel({ this.roomId, this.liveStatus, this.liveTime, this.playurlInfo, }); int? roomId; int? liveStatus; int? liveTime; PlayurlInfo? playurlInfo; RoomInfoModel.fromJson(Map json) { roomId = json['room_id']; liveStatus = json['live_status']; liveTime = json['live_time']; playurlInfo = PlayurlInfo.fromJson(json['playurl_info']); } } class PlayurlInfo { PlayurlInfo({ this.playurl, }); Playurl? playurl; PlayurlInfo.fromJson(Map json) { playurl = Playurl.fromJson(json['playurl']); } } class Playurl { Playurl({ this.cid, this.gQnDesc, this.stream, }); int? cid; List? gQnDesc; List? stream; Playurl.fromJson(Map json) { cid = json['cid']; gQnDesc = json['g_qn_desc'].map((e) => GQnDesc.fromJson(e)).toList(); stream = json['stream'].map((e) => Streams.fromJson(e)).toList(); } } class GQnDesc { GQnDesc({ this.qn, this.desc, this.hdrDesc, this.attrDesc, }); int? qn; String? desc; String? hdrDesc; String? attrDesc; GQnDesc.fromJson(Map json) { qn = json['qn']; desc = json['desc']; hdrDesc = json['hedr_desc']; attrDesc = json['attr_desc']; } } class Streams { Streams({ this.protocolName, this.format, }); String? protocolName; List? format; Streams.fromJson(Map json) { protocolName = json['protocol_name']; format = json['format'].map((e) => FormatItem.fromJson(e)).toList(); } } class FormatItem { FormatItem({ this.formatName, this.codec, }); String? formatName; List? codec; FormatItem.fromJson(Map json) { formatName = json['format_name']; codec = json['codec'].map((e) => CodecItem.fromJson(e)).toList(); } } class CodecItem { CodecItem({ this.codecName, this.currentQn, this.acceptQn, this.baseUrl, this.urlInfo, this.hdrQn, this.dolbyType, this.attrName, }); String? codecName; int? currentQn; List? acceptQn; String? baseUrl; List? urlInfo; String? hdrQn; int? dolbyType; String? attrName; CodecItem.fromJson(Map json) { codecName = json['codec_name']; currentQn = json['current_qn']; acceptQn = json['accept_qn']; baseUrl = json['base_url']; urlInfo = json['url_info'] .map((e) => UrlInfoItem.fromJson(e)) .toList(); hdrQn = json['hdr_n']; dolbyType = json['dolby_type']; attrName = json['attr_name']; } } class UrlInfoItem { UrlInfoItem({ this.host, this.extra, this.streamTtl, }); String? host; String? extra; int? streamTtl; UrlInfoItem.fromJson(Map json) { host = json['host']; extra = json['extra']; streamTtl = json['stream_ttl']; } }