/// code : "OK" /// data : {"list":[{"roomId":"469212174745600","roomNo":"600385986","roomName":"66拍卖","roomCover":"http://user.qn.timichat.net/avatar/162116510154752/1628754281121.png","needPass":0,"scoreValue":"160110","rankNo":1},{"roomId":"168709150736384","roomNo":"600065143","roomName":"你想让我公共课云南咯","roomCover":"http://user.qn.timichat.net/rtc/roomCover/1625217911106.png","needPass":0,"scoreValue":"5790","rankNo":2},{"roomId":"469211897921536","roomNo":"600384163","roomName":"66派单","roomCover":"http://user.qn.timichat.net/avatar/162116510154752/1628754281121.png","needPass":0,"scoreValue":"0","rankNo":3}]} /// msg : "" /// success : true class HourRankModel { String? _code; Data? _data; String? _msg; bool? _success; String? get code => _code; Data? get data => _data; String? get msg => _msg; bool? get success => _success; HourRankModel({ String? code, Data? data, String? msg, bool? success}){ _code = code; _data = data; _msg = msg; _success = success; } HourRankModel.fromJson(dynamic json) { _code = json['code']; _data = json['data'] != null ? Data.fromJson(json['data']) : null; _msg = json['msg']; _success = json['success']; } Map toJson() { var map = {}; map['code'] = _code; if (_data != null) { map['data'] = _data?.toJson(); } map['msg'] = _msg; map['success'] = _success; return map; } } /// list : [{"roomId":"469212174745600","roomNo":"600385986","roomName":"66拍卖","roomCover":"http://user.qn.timichat.net/avatar/162116510154752/1628754281121.png","needPass":0,"scoreValue":"160110","rankNo":1},{"roomId":"168709150736384","roomNo":"600065143","roomName":"你想让我公共课云南咯","roomCover":"http://user.qn.timichat.net/rtc/roomCover/1625217911106.png","needPass":0,"scoreValue":"5790","rankNo":2},{"roomId":"469211897921536","roomNo":"600384163","roomName":"66派单","roomCover":"http://user.qn.timichat.net/avatar/162116510154752/1628754281121.png","needPass":0,"scoreValue":"0","rankNo":3}] class Data { List? _list; List? get list => _list; Data({ List? list}){ _list = list; } Data.fromJson(dynamic json) { if (json['list'] != null) { _list = []; json['list'].forEach((v) { _list?.add(HourList.fromJson(v)); }); } } Map toJson() { var map = {}; if (_list != null) { map['list'] = _list?.map((v) => v.toJson()).toList(); } return map; } } /// roomId : "469212174745600" /// roomNo : "600385986" /// roomName : "66拍卖" /// roomCover : "http://user.qn.timichat.net/avatar/162116510154752/1628754281121.png" /// needPass : 0 /// scoreValue : "160110" /// rankNo : 1 class HourList { String? _roomId; String? _roomNo; String? _roomName; String? _roomCover; int? _needPass; String? _scoreValue; int? _rankNo; String? get roomId => _roomId; String? get roomNo => _roomNo; String? get roomName => _roomName; String? get roomCover => _roomCover; int? get needPass => _needPass; String? get scoreValue => _scoreValue; int? get rankNo => _rankNo; HourList({ String? roomId, String? roomNo, String? roomName, String? roomCover, int? needPass, String? scoreValue, int? rankNo}){ _roomId = roomId; _roomNo = roomNo; _roomName = roomName; _roomCover = roomCover; _needPass = needPass; _scoreValue = scoreValue; _rankNo = rankNo; } HourList.fromJson(dynamic json) { _roomId = json['roomId']; _roomNo = json['roomNo']; _roomName = json['roomName']; _roomCover = json['roomCover']; _needPass = json['needPass']; _scoreValue = json['scoreValue']; _rankNo = json['rankNo']; } Map toJson() { var map = {}; map['roomId'] = _roomId; map['roomNo'] = _roomNo; map['roomName'] = _roomName; map['roomCover'] = _roomCover; map['needPass'] = _needPass; map['scoreValue'] = _scoreValue; map['rankNo'] = _rankNo; return map; } }