123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- /// code : "OK"
- /// data : {"list":[{"userId":"161525960540160","userName":"99非签约","userAvatar":"http://user.qn.timichat.net/avatar/161525960540160/1638945182196.png","rankNo":1,"amount":"30","wealthLevel":42,"roomId":null,"isOnline":1,"animationFile":null,"role":null,"userSex":2}],"myRankItem":{"userId":"418082988228608","userName":"明愁吃滴休息","userAvatar":"http://user.qn.timichat.net/avatar/418082988228608/1640602657073.png","rankNo":0,"amount":"0","wealthLevel":37,"roomId":null,"isOnline":null,"animationFile":null,"role":null,"userSex":null}}
- /// msg : ""
- /// success : true
- class HomeDiamondRankModel {
- HomeDiamondRankModel({
- String? code,
- Data? data,
- String? msg,
- bool? success,}){
- _code = code;
- _data = data;
- _msg = msg;
- _success = success;
- }
- HomeDiamondRankModel.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<String, dynamic> toJson() {
- final map = <String, dynamic>{};
- map['code'] = _code;
- if (_data != null) {
- map['data'] = _data?.toJson();
- }
- map['msg'] = _msg;
- map['success'] = _success;
- return map;
- }
- }
- /// list : [{"userId":"161525960540160","userName":"99非签约","userAvatar":"http://user.qn.timichat.net/avatar/161525960540160/1638945182196.png","rankNo":1,"amount":"30","wealthLevel":42,"roomId":null,"isOnline":1,"animationFile":null,"role":null,"userSex":2}]
- /// myRankItem : {"userId":"418082988228608","userName":"明愁吃滴休息","userAvatar":"http://user.qn.timichat.net/avatar/418082988228608/1640602657073.png","rankNo":0,"amount":"0","wealthLevel":37,"roomId":null,"isOnline":null,"animationFile":null,"role":null,"userSex":null}
- class Data {
- Data({
- List<DiamondList>? list,
- MyRankItem? myRankItem,}){
- _list = list;
- _myRankItem = myRankItem;
- }
- Data.fromJson(dynamic json) {
- if (json['list'] != null) {
- _list = [];
- json['list'].forEach((v) {
- _list?.add(DiamondList.fromJson(v));
- });
- }
- _myRankItem = json['myRankItem'] != null ? MyRankItem.fromJson(json['myRankItem']) : null;
- }
- List<DiamondList>? _list;
- MyRankItem? _myRankItem;
- List<DiamondList>? get list => _list;
- MyRankItem? get myRankItem => _myRankItem;
- Map<String, dynamic> toJson() {
- final map = <String, dynamic>{};
- if (_list != null) {
- map['list'] = _list?.map((v) => v.toJson()).toList();
- }
- if (_myRankItem != null) {
- map['myRankItem'] = _myRankItem?.toJson();
- }
- return map;
- }
- }
- /// userId : "418082988228608"
- /// userName : "明愁吃滴休息"
- /// userAvatar : "http://user.qn.timichat.net/avatar/418082988228608/1640602657073.png"
- /// rankNo : 0
- /// amount : "0"
- /// wealthLevel : 37
- /// roomId : null
- /// isOnline : null
- /// animationFile : null
- /// role : null
- /// userSex : null
- class MyRankItem {
- MyRankItem({
- String? userId,
- String? userName,
- String? userAvatar,
- int? rankNo,
- String? amount,
- int? wealthLevel,
- dynamic roomId,
- dynamic isOnline,
- dynamic animationFile,
- dynamic role,
- dynamic userSex,}){
- _userId = userId;
- _userName = userName;
- _userAvatar = userAvatar;
- _rankNo = rankNo;
- _amount = amount;
- _wealthLevel = wealthLevel;
- _roomId = roomId;
- _isOnline = isOnline;
- _animationFile = animationFile;
- _role = role;
- _userSex = userSex;
- }
- MyRankItem.fromJson(dynamic json) {
- _userId = json['userId'];
- _userName = json['userName'];
- _userAvatar = json['userAvatar'];
- _rankNo = json['rankNo'];
- _amount = json['amount'];
- _wealthLevel = json['wealthLevel'];
- _roomId = json['roomId'];
- _isOnline = json['isOnline'];
- _animationFile = json['animationFile'];
- _role = json['role'];
- _userSex = json['userSex'];
- }
- String? _userId;
- String? _userName;
- String? _userAvatar;
- int? _rankNo;
- String? _amount;
- int? _wealthLevel;
- dynamic _roomId;
- dynamic _isOnline;
- dynamic _animationFile;
- dynamic _role;
- dynamic _userSex;
- String? get userId => _userId;
- String? get userName => _userName;
- String? get userAvatar => _userAvatar;
- int? get rankNo => _rankNo;
- String? get amount => _amount;
- int? get wealthLevel => _wealthLevel;
- dynamic get roomId => _roomId;
- dynamic get isOnline => _isOnline;
- dynamic get animationFile => _animationFile;
- dynamic get role => _role;
- dynamic get userSex => _userSex;
- Map<String, dynamic> toJson() {
- final map = <String, dynamic>{};
- map['userId'] = _userId;
- map['userName'] = _userName;
- map['userAvatar'] = _userAvatar;
- map['rankNo'] = _rankNo;
- map['amount'] = _amount;
- map['wealthLevel'] = _wealthLevel;
- map['roomId'] = _roomId;
- map['isOnline'] = _isOnline;
- map['animationFile'] = _animationFile;
- map['role'] = _role;
- map['userSex'] = _userSex;
- return map;
- }
- }
- /// userId : "161525960540160"
- /// userName : "99非签约"
- /// userAvatar : "http://user.qn.timichat.net/avatar/161525960540160/1638945182196.png"
- /// rankNo : 1
- /// amount : "30"
- /// wealthLevel : 42
- /// roomId : null
- /// isOnline : 1
- /// animationFile : null
- /// role : null
- /// userSex : 2
- class DiamondList {
- DiamondList({
- String? userId,
- String? userName,
- String? userAvatar,
- int? rankNo,
- String? amount,
- int? wealthLevel,
- dynamic roomId,
- int? isOnline,
- dynamic animationFile,
- dynamic role,
- int? userSex,}){
- _userId = userId;
- _userName = userName;
- _userAvatar = userAvatar;
- _rankNo = rankNo;
- _amount = amount;
- _wealthLevel = wealthLevel;
- _roomId = roomId;
- _isOnline = isOnline;
- _animationFile = animationFile;
- _role = role;
- _userSex = userSex;
- }
- DiamondList.fromJson(dynamic json) {
- _userId = json['userId'];
- _userName = json['userName'];
- _userAvatar = json['userAvatar'];
- _rankNo = json['rankNo'];
- _amount = json['amount'];
- _wealthLevel = json['wealthLevel'];
- _roomId = json['roomId'];
- _isOnline = json['isOnline'];
- _animationFile = json['animationFile'];
- _role = json['role'];
- _userSex = json['userSex'];
- }
- String? _userId;
- String? _userName;
- String? _userAvatar;
- int? _rankNo;
- String? _amount;
- int? _wealthLevel;
- dynamic _roomId;
- int? _isOnline;
- dynamic _animationFile;
- dynamic _role;
- int? _userSex;
- String? get userId => _userId;
- String? get userName => _userName;
- String? get userAvatar => _userAvatar;
- int? get rankNo => _rankNo;
- String? get amount => _amount;
- int? get wealthLevel => _wealthLevel;
- dynamic get roomId => _roomId;
- int? get isOnline => _isOnline;
- dynamic get animationFile => _animationFile;
- dynamic get role => _role;
- int? get userSex => _userSex;
- Map<String, dynamic> toJson() {
- final map = <String, dynamic>{};
- map['userId'] = _userId;
- map['userName'] = _userName;
- map['userAvatar'] = _userAvatar;
- map['rankNo'] = _rankNo;
- map['amount'] = _amount;
- map['wealthLevel'] = _wealthLevel;
- map['roomId'] = _roomId;
- map['isOnline'] = _isOnline;
- map['animationFile'] = _animationFile;
- map['role'] = _role;
- map['userSex'] = _userSex;
- return map;
- }
- }
|