home_search_rtc_room_model.dart 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /// code : "OK"
  2. /// 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}
  3. /// msg : ""
  4. /// success : true
  5. class HomeSearchRtcRoomModel {
  6. HomeSearchRtcRoomModel({
  7. String? code,
  8. Data? data,
  9. String? msg,
  10. bool? success,}){
  11. _code = code;
  12. _data = data;
  13. _msg = msg;
  14. _success = success;
  15. }
  16. HomeSearchRtcRoomModel.fromJson(dynamic json) {
  17. _code = json['code'];
  18. _data = json['data'] != null ? Data.fromJson(json['data']) : null;
  19. _msg = json['msg'];
  20. _success = json['success'];
  21. }
  22. String? _code;
  23. Data? _data;
  24. String? _msg;
  25. bool? _success;
  26. String? get code => _code;
  27. Data? get data => _data;
  28. String? get msg => _msg;
  29. bool? get success => _success;
  30. Map<String, dynamic> toJson() {
  31. final map = <String, dynamic>{};
  32. map['code'] = _code;
  33. if (_data != null) {
  34. map['data'] = _data?.toJson();
  35. }
  36. map['msg'] = _msg;
  37. map['success'] = _success;
  38. return map;
  39. }
  40. }
  41. /// total : 5
  42. /// pageIndex : 1
  43. /// pageSize : 20
  44. /// 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}]
  45. /// pageCursor : 0
  46. class Data {
  47. Data({
  48. int? total,
  49. int? pageIndex,
  50. int? pageSize,
  51. List<SearchRtcRoomItem>? list,
  52. int? pageCursor,}){
  53. _total = total;
  54. _pageIndex = pageIndex;
  55. _pageSize = pageSize;
  56. _list = list;
  57. _pageCursor = pageCursor;
  58. }
  59. Data.fromJson(dynamic json) {
  60. _total = json['total'];
  61. _pageIndex = json['pageIndex'];
  62. _pageSize = json['pageSize'];
  63. if (json['list'] != null) {
  64. _list = [];
  65. json['list'].forEach((v) {
  66. _list?.add(SearchRtcRoomItem.fromJson(v));
  67. });
  68. }
  69. _pageCursor = json['pageCursor'];
  70. }
  71. int? _total;
  72. int? _pageIndex;
  73. int? _pageSize;
  74. List<SearchRtcRoomItem>? _list;
  75. int? _pageCursor;
  76. int? get total => _total;
  77. int? get pageIndex => _pageIndex;
  78. int? get pageSize => _pageSize;
  79. List<SearchRtcRoomItem>? get list => _list;
  80. int? get pageCursor => _pageCursor;
  81. Map<String, dynamic> toJson() {
  82. final map = <String, dynamic>{};
  83. map['total'] = _total;
  84. map['pageIndex'] = _pageIndex;
  85. map['pageSize'] = _pageSize;
  86. if (_list != null) {
  87. map['list'] = _list?.map((v) => v.toJson()).toList();
  88. }
  89. map['pageCursor'] = _pageCursor;
  90. return map;
  91. }
  92. }
  93. /// roomId : "469211897921536"
  94. /// userId : "162116510154752"
  95. /// userNo : null
  96. /// roomType : 201
  97. /// roomNo : "600384163"
  98. /// roomName : "66派单"
  99. /// roomTitle : null
  100. /// roomCover : "http://user.qn.soybean.net/avatar/162116510154752/1628754281121.png"
  101. /// status : 1
  102. /// roomHeat : "100"
  103. /// userName : "66纪念"
  104. /// categoryName : "派单"
  105. /// inBattle : 0
  106. class SearchRtcRoomItem {
  107. SearchRtcRoomItem({
  108. String? roomId,
  109. String? userId,
  110. dynamic userNo,
  111. int? roomType,
  112. String? roomNo,
  113. String? roomName,
  114. dynamic roomTitle,
  115. String? roomCover,
  116. int? status,
  117. String? roomHeat,
  118. String? userName,
  119. String? categoryName,
  120. int? inBattle,}){
  121. _roomId = roomId;
  122. _userId = userId;
  123. _userNo = userNo;
  124. _roomType = roomType;
  125. _roomNo = roomNo;
  126. _roomName = roomName;
  127. _roomTitle = roomTitle;
  128. _roomCover = roomCover;
  129. _status = status;
  130. _roomHeat = roomHeat;
  131. _userName = userName;
  132. _categoryName = categoryName;
  133. _inBattle = inBattle;
  134. }
  135. SearchRtcRoomItem.fromJson(dynamic json) {
  136. _roomId = json['roomId'];
  137. _userId = json['userId'];
  138. _userNo = json['userNo'];
  139. _roomType = json['roomType'];
  140. _roomNo = json['roomNo'];
  141. _roomName = json['roomName'];
  142. _roomTitle = json['roomTitle'];
  143. _roomCover = json['roomCover'];
  144. _status = json['status'];
  145. _roomHeat = json['roomHeat'];
  146. _userName = json['userName'];
  147. _categoryName = json['categoryName'];
  148. _inBattle = json['inBattle'];
  149. }
  150. String? _roomId;
  151. String? _userId;
  152. dynamic _userNo;
  153. int? _roomType;
  154. String? _roomNo;
  155. String? _roomName;
  156. dynamic _roomTitle;
  157. String? _roomCover;
  158. int? _status;
  159. String? _roomHeat;
  160. String? _userName;
  161. String? _categoryName;
  162. int? _inBattle;
  163. String? get roomId => _roomId;
  164. String? get userId => _userId;
  165. dynamic get userNo => _userNo;
  166. int? get roomType => _roomType;
  167. String? get roomNo => _roomNo;
  168. String? get roomName => _roomName;
  169. dynamic get roomTitle => _roomTitle;
  170. String? get roomCover => _roomCover;
  171. int? get status => _status;
  172. String? get roomHeat => _roomHeat;
  173. String? get userName => _userName;
  174. String? get categoryName => _categoryName;
  175. int? get inBattle => _inBattle;
  176. Map<String, dynamic> toJson() {
  177. final map = <String, dynamic>{};
  178. map['roomId'] = _roomId;
  179. map['userId'] = _userId;
  180. map['userNo'] = _userNo;
  181. map['roomType'] = _roomType;
  182. map['roomNo'] = _roomNo;
  183. map['roomName'] = _roomName;
  184. map['roomTitle'] = _roomTitle;
  185. map['roomCover'] = _roomCover;
  186. map['status'] = _status;
  187. map['roomHeat'] = _roomHeat;
  188. map['userName'] = _userName;
  189. map['categoryName'] = _categoryName;
  190. map['inBattle'] = _inBattle;
  191. return map;
  192. }
  193. }