/// code : "OK" /// data : {"list":[{"userId":"45455484387398","userName":"可爱多拍死你是咯破了","userAvatar":"http://user.qn.timichat.com/avatar/default_female.png","roomRole":2,"wealthLevel":40,"userNo":"10584078","userSex":null,"channelName":null,"headwearAnimationId":null},{"userId":"46898215911486","userName":"尔豪","userAvatar":"http://user.qn.timichat.net/avatar/46898215911486/1611992024031.png","roomRole":2,"wealthLevel":42,"userNo":"10142351","userSex":null,"channelName":null,"headwearAnimationId":null},{"userId":"141075591200768","userName":"大卡车72😲","userAvatar":"http://user.qn.timichat.net/avatar/141075591200768/1631690468269.png","roomRole":2,"wealthLevel":35,"userNo":"10878114","userSex":null,"channelName":null,"headwearAnimationId":null},{"userId":"309226563960832","userName":"尉迟浩然","userAvatar":"http://user.qn.timichat.com/avatar/default_male.png","roomRole":2,"wealthLevel":9,"userNo":"10895886","userSex":null,"channelName":null,"headwearAnimationId":null}]} /// msg : "" /// success : true class ChatRoomManagersModel { dynamic? _code; Data? _data; String? _msg; bool? _success; dynamic? get code => _code; Data? get data => _data; String? get msg => _msg; bool? get success => _success; ChatRoomManagersModel({ String? code, Data? data, String? msg, bool? success}){ _code = code; _data = data; _msg = msg; _success = success; } ChatRoomManagersModel.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 : [{"userId":"45455484387398","userName":"可爱多拍死你是咯破了","userAvatar":"http://user.qn.timichat.com/avatar/default_female.png","roomRole":2,"wealthLevel":40,"userNo":"10584078","userSex":null,"channelName":null,"headwearAnimationId":null},{"userId":"46898215911486","userName":"尔豪","userAvatar":"http://user.qn.timichat.net/avatar/46898215911486/1611992024031.png","roomRole":2,"wealthLevel":42,"userNo":"10142351","userSex":null,"channelName":null,"headwearAnimationId":null},{"userId":"141075591200768","userName":"大卡车72😲","userAvatar":"http://user.qn.timichat.net/avatar/141075591200768/1631690468269.png","roomRole":2,"wealthLevel":35,"userNo":"10878114","userSex":null,"channelName":null,"headwearAnimationId":null},{"userId":"309226563960832","userName":"尉迟浩然","userAvatar":"http://user.qn.timichat.com/avatar/default_male.png","roomRole":2,"wealthLevel":9,"userNo":"10895886","userSex":null,"channelName":null,"headwearAnimationId":null}] 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(RoomManagersInfo.fromJson(v)); }); } } Map toJson() { var map = {}; if (_list != null) { map['list'] = _list?.map((v) => v.toJson()).toList(); } return map; } } /// userId : "45455484387398" /// userName : "可爱多拍死你是咯破了" /// userAvatar : "http://user.qn.timichat.com/avatar/default_female.png" /// roomRole : 2 /// wealthLevel : 40 /// userNo : "10584078" /// userSex : null /// channelName : null /// headwearAnimationId : null class RoomManagersInfo{ String? _userId; String? _userName; String? _userAvatar; int? _roomRole; int? _wealthLevel; String? _userNo; dynamic? _userSex; dynamic? _channelName; dynamic? _headwearAnimationId; String? get userId => _userId; String? get userName => _userName; String? get userAvatar => _userAvatar; int? get roomRole => _roomRole; int? get wealthLevel => _wealthLevel; String? get userNo => _userNo; dynamic? get userSex => _userSex; dynamic? get channelName => _channelName; dynamic? get headwearAnimationId => _headwearAnimationId; RoomManagersInfo({ String? userId, String? userName, String? userAvatar, int? roomRole, int? wealthLevel, String? userNo, dynamic? userSex, dynamic? channelName, dynamic? headwearAnimationId}){ _userId = userId; _userName = userName; _userAvatar = userAvatar; _roomRole = roomRole; _wealthLevel = wealthLevel; _userNo = userNo; _userSex = userSex; _channelName = channelName; _headwearAnimationId = headwearAnimationId; } RoomManagersInfo.fromJson(dynamic json) { _userId = json['userId']; _userName = json['userName']; _userAvatar = json['userAvatar']; _roomRole = json['roomRole']; _wealthLevel = json['wealthLevel']; _userNo = json['userNo']; _userSex = json['userSex']; _channelName = json['channelName']; _headwearAnimationId = json['headwearAnimationId']; } Map toJson() { var map = {}; map['userId'] = _userId; map['userName'] = _userName; map['userAvatar'] = _userAvatar; map['roomRole'] = _roomRole; map['wealthLevel'] = _wealthLevel; map['userNo'] = _userNo; map['userSex'] = _userSex; map['channelName'] = _channelName; map['headwearAnimationId'] = _headwearAnimationId; return map; } }