/// code : "OK" /// data : {"total":5,"pageIndex":1,"pageSize":20,"list":[{"roomId":"469211897921536","userId":"162116510154752","userNo":null,"roomType":201,"roomNo":"600384163","roomName":"66派单","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"100","userName":"66纪念","categoryName":"派单","inBattle":0},{"roomId":"540490596352000","userId":"531851521294341","userNo":"10540196","roomType":201,"roomNo":"600207727","roomName":"机器房间66","roomTitle":null,"roomCover":"https://img1.baidu.com/it/u=2705643623,2317760089&fm=26&fmt=auto","status":1,"roomHeat":"0","userName":"小星芽67","categoryName":"派单","inBattle":0},{"roomId":"469212292186112","userId":"162116510154752","userNo":"10811379","roomType":101,"roomNo":"600606848","roomName":"66相亲","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"0","userName":"66纪念","categoryName":"相亲","inBattle":0},{"roomId":"469212174745600","userId":"162116510154752","userNo":"10811379","roomType":301,"roomNo":"600385986","roomName":"66拍卖","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"0","userName":"66纪念","categoryName":"拍卖1","inBattle":0},{"roomId":"469212032139264","userId":"162116510154752","userNo":"10811379","roomType":0,"roomNo":"600107695","roomName":"66PK","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"0","userName":"66纪念","categoryName":"PK匹配","inBattle":0}],"pageCursor":0} /// msg : "" /// success : true class HomeSearchRtcRoomModel { HomeSearchRtcRoomModel({ String? code, Data? data, String? msg, bool? success,}){ _code = code; _data = data; _msg = msg; _success = success; } HomeSearchRtcRoomModel.fromJson(dynamic json) { _code = json['code']; _data = json['data'] != null ? Data.fromJson(json['data']) : null; _msg = json['msg']; _success = json['success']; } String? _code; Data? _data; String? _msg; bool? _success; String? get code => _code; Data? get data => _data; String? get msg => _msg; bool? get success => _success; Map toJson() { final map = {}; map['code'] = _code; if (_data != null) { map['data'] = _data?.toJson(); } map['msg'] = _msg; map['success'] = _success; return map; } } /// total : 5 /// pageIndex : 1 /// pageSize : 20 /// list : [{"roomId":"469211897921536","userId":"162116510154752","userNo":null,"roomType":201,"roomNo":"600384163","roomName":"66派单","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"100","userName":"66纪念","categoryName":"派单","inBattle":0},{"roomId":"540490596352000","userId":"531851521294341","userNo":"10540196","roomType":201,"roomNo":"600207727","roomName":"机器房间66","roomTitle":null,"roomCover":"https://img1.baidu.com/it/u=2705643623,2317760089&fm=26&fmt=auto","status":1,"roomHeat":"0","userName":"小星芽67","categoryName":"派单","inBattle":0},{"roomId":"469212292186112","userId":"162116510154752","userNo":"10811379","roomType":101,"roomNo":"600606848","roomName":"66相亲","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"0","userName":"66纪念","categoryName":"相亲","inBattle":0},{"roomId":"469212174745600","userId":"162116510154752","userNo":"10811379","roomType":301,"roomNo":"600385986","roomName":"66拍卖","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"0","userName":"66纪念","categoryName":"拍卖1","inBattle":0},{"roomId":"469212032139264","userId":"162116510154752","userNo":"10811379","roomType":0,"roomNo":"600107695","roomName":"66PK","roomTitle":null,"roomCover":"http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png","status":1,"roomHeat":"0","userName":"66纪念","categoryName":"PK匹配","inBattle":0}] /// pageCursor : 0 class Data { Data({ int? total, int? pageIndex, int? pageSize, List? list, int? pageCursor,}){ _total = total; _pageIndex = pageIndex; _pageSize = pageSize; _list = list; _pageCursor = pageCursor; } Data.fromJson(dynamic json) { _total = json['total']; _pageIndex = json['pageIndex']; _pageSize = json['pageSize']; if (json['list'] != null) { _list = []; json['list'].forEach((v) { _list?.add(SearchRtcRoomItem.fromJson(v)); }); } _pageCursor = json['pageCursor']; } int? _total; int? _pageIndex; int? _pageSize; List? _list; int? _pageCursor; int? get total => _total; int? get pageIndex => _pageIndex; int? get pageSize => _pageSize; List? get list => _list; int? get pageCursor => _pageCursor; Map toJson() { final map = {}; map['total'] = _total; map['pageIndex'] = _pageIndex; map['pageSize'] = _pageSize; if (_list != null) { map['list'] = _list?.map((v) => v.toJson()).toList(); } map['pageCursor'] = _pageCursor; return map; } } /// roomId : "469211897921536" /// userId : "162116510154752" /// userNo : null /// roomType : 201 /// roomNo : "600384163" /// roomName : "66派单" /// roomTitle : null /// roomCover : "http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png" /// status : 1 /// roomHeat : "100" /// userName : "66纪念" /// categoryName : "派单" /// inBattle : 0 class SearchRtcRoomItem { SearchRtcRoomItem({ String? roomId, String? userId, dynamic userNo, int? roomType, String? roomNo, String? roomName, dynamic roomTitle, String? roomCover, int? status, String? roomHeat, String? userName, String? categoryName, int? inBattle,}){ _roomId = roomId; _userId = userId; _userNo = userNo; _roomType = roomType; _roomNo = roomNo; _roomName = roomName; _roomTitle = roomTitle; _roomCover = roomCover; _status = status; _roomHeat = roomHeat; _userName = userName; _categoryName = categoryName; _inBattle = inBattle; } SearchRtcRoomItem.fromJson(dynamic json) { _roomId = json['roomId']; _userId = json['userId']; _userNo = json['userNo']; _roomType = json['roomType']; _roomNo = json['roomNo']; _roomName = json['roomName']; _roomTitle = json['roomTitle']; _roomCover = json['roomCover']; _status = json['status']; _roomHeat = json['roomHeat']; _userName = json['userName']; _categoryName = json['categoryName']; _inBattle = json['inBattle']; } String? _roomId; String? _userId; dynamic _userNo; int? _roomType; String? _roomNo; String? _roomName; dynamic _roomTitle; String? _roomCover; int? _status; String? _roomHeat; String? _userName; String? _categoryName; int? _inBattle; String? get roomId => _roomId; String? get userId => _userId; dynamic get userNo => _userNo; int? get roomType => _roomType; String? get roomNo => _roomNo; String? get roomName => _roomName; dynamic get roomTitle => _roomTitle; String? get roomCover => _roomCover; int? get status => _status; String? get roomHeat => _roomHeat; String? get userName => _userName; String? get categoryName => _categoryName; int? get inBattle => _inBattle; Map toJson() { final map = {}; map['roomId'] = _roomId; map['userId'] = _userId; map['userNo'] = _userNo; map['roomType'] = _roomType; map['roomNo'] = _roomNo; map['roomName'] = _roomName; map['roomTitle'] = _roomTitle; map['roomCover'] = _roomCover; map['status'] = _status; map['roomHeat'] = _roomHeat; map['userName'] = _userName; map['categoryName'] = _categoryName; map['inBattle'] = _inBattle; return map; } }