123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- /// 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<String, dynamic> toJson() {
- var map = <String, dynamic>{};
- 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<RoomManagersInfo>? _list;
- List<RoomManagersInfo>? get list => _list;
- Data({
- List<RoomManagersInfo>? list}){
- _list = list;
- }
- Data.fromJson(dynamic json) {
- if (json['list'] != null) {
- _list = [];
- json['list'].forEach((v) {
- _list?.add(RoomManagersInfo.fromJson(v));
- });
- }
- }
- Map<String, dynamic> toJson() {
- var map = <String, dynamic>{};
- 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<String, dynamic> toJson() {
- var map = <String, dynamic>{};
- 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;
- }
- }
|