123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- /// code : "OK"
- /// data : {"list":[{"userId":"418082988228608","userName":"明愁吃愁穿c","userAvatar":"http://user.qn.timichat.net/avatar/418082988228608/1624968976625.png","wealthLevel":33,"userNo":"10129696","sitTime":"1631788033485","userSex":1}]}
- /// msg : ""
- /// success : true
- class QueueUserModel {
- String? _code;
- Data? _data;
- String? _msg;
- bool? _success;
- String? get code => _code;
- Data? get data => _data;
- String? get msg => _msg;
- bool? get success => _success;
- QueueUserModel({
- String? code,
- Data? data,
- String? msg,
- bool? success}){
- _code = code;
- _data = data;
- _msg = msg;
- _success = success;
- }
- QueueUserModel.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":"418082988228608","userName":"明愁吃愁穿c","userAvatar":"http://user.qn.timichat.net/avatar/418082988228608/1624968976625.png","wealthLevel":33,"userNo":"10129696","sitTime":"1631788033485","userSex":1}]
- class Data {
- List<QueueList>? _list;
- List<QueueList>? get list => _list;
- Data({
- List<QueueList>? list}){
- _list = list;
- }
- Data.fromJson(dynamic json) {
- if (json['list'] != null) {
- _list = [];
- json['list'].forEach((v) {
- _list?.add(QueueList.fromJson(v));
- });
- }
- }
- Map<String, dynamic> toJson() {
- var map = <String, dynamic>{};
- if (_list != null) {
- map['list'] = _list?.map((v) => v.toJson()).toList();
- }
- return map;
- }
- }
- /// userId : "418082988228608"
- /// userName : "明愁吃愁穿c"
- /// userAvatar : "http://user.qn.timichat.net/avatar/418082988228608/1624968976625.png"
- /// wealthLevel : 33
- /// userNo : "10129696"
- /// sitTime : "1631788033485"
- /// userSex : 1
- class QueueList {
- String? _userId;
- String? _userName;
- String? _userAvatar;
- int? _wealthLevel;
- String? _userNo;
- String? _sitTime;
- int? _userSex;
- String? get userId => _userId;
- String? get userName => _userName;
- String? get userAvatar => _userAvatar;
- int? get wealthLevel => _wealthLevel;
- String? get userNo => _userNo;
- String? get sitTime => _sitTime;
- int? get userSex => _userSex;
- QueueList({
- String? userId,
- String? userName,
- String? userAvatar,
- int? wealthLevel,
- String? userNo,
- String? sitTime,
- int? userSex}){
- _userId = userId;
- _userName = userName;
- _userAvatar = userAvatar;
- _wealthLevel = wealthLevel;
- _userNo = userNo;
- _sitTime = sitTime;
- _userSex = userSex;
- }
- QueueList.fromJson(dynamic json) {
- _userId = json['userId'];
- _userName = json['userName'];
- _userAvatar = json['userAvatar'];
- _wealthLevel = json['wealthLevel'];
- _userNo = json['userNo'];
- _sitTime = json['sitTime'];
- _userSex = json['userSex'];
- }
- Map<String, dynamic> toJson() {
- var map = <String, dynamic>{};
- map['userId'] = _userId;
- map['userName'] = _userName;
- map['userAvatar'] = _userAvatar;
- map['wealthLevel'] = _wealthLevel;
- map['userNo'] = _userNo;
- map['sitTime'] = _sitTime;
- map['userSex'] = _userSex;
- return map;
- }
- }
|