123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- /// code : "OK"
- /// data : {"total":3,"pageIndex":1,"pageSize":20,"list":[{"userId":"162116510154752","userName":"66纪念","userNo":"10811379","niceNo":null,"userAvatar":"http://user.qn.timichat.net/avatar/162116510154752/1631951244395.png","isLive":0,"userLatitude":30.287458,"userLongitude":120.15358,"userDistance":1.2866731490746794E7,"wealthLevel":49,"charmLevel":1,"starLevel":16,"followStatus":false},{"userId":"170852968562689","userName":"小星芽66","userNo":"10829581","niceNo":null,"userAvatar":"http://user.qn.timichat.com/avatar/default_male.png","isLive":0,"userLatitude":null,"userLongitude":null,"userDistance":null,"wealthLevel":3,"charmLevel":1,"starLevel":2,"followStatus":false},{"userId":"551615425675280","userName":"龙丘志泽66","userNo":"10411382","niceNo":null,"userAvatar":"http://user.qn.timichat.com/avatar/default_male.png","isLive":0,"userLatitude":null,"userLongitude":null,"userDistance":null,"wealthLevel":1,"charmLevel":1,"starLevel":1,"followStatus":false}],"pageCursor":0}
- /// msg : ""
- /// success : true
- class HomeSearchContentUsersModel {
- HomeSearchContentUsersModel({
- String? code,
- Data? data,
- String? msg,
- bool? success,}){
- _code = code;
- _data = data;
- _msg = msg;
- _success = success;
- }
- HomeSearchContentUsersModel.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;
- }
- }
- /// total : 3
- /// pageIndex : 1
- /// pageSize : 20
- /// list : [{"userId":"162116510154752","userName":"66纪念","userNo":"10811379","niceNo":null,"userAvatar":"http://user.qn.timichat.net/avatar/162116510154752/1631951244395.png","isLive":0,"userLatitude":30.287458,"userLongitude":120.15358,"userDistance":1.2866731490746794E7,"wealthLevel":49,"charmLevel":1,"starLevel":16,"followStatus":false},{"userId":"170852968562689","userName":"小星芽66","userNo":"10829581","niceNo":null,"userAvatar":"http://user.qn.timichat.com/avatar/default_male.png","isLive":0,"userLatitude":null,"userLongitude":null,"userDistance":null,"wealthLevel":3,"charmLevel":1,"starLevel":2,"followStatus":false},{"userId":"551615425675280","userName":"龙丘志泽66","userNo":"10411382","niceNo":null,"userAvatar":"http://user.qn.timichat.com/avatar/default_male.png","isLive":0,"userLatitude":null,"userLongitude":null,"userDistance":null,"wealthLevel":1,"charmLevel":1,"starLevel":1,"followStatus":false}]
- /// pageCursor : 0
- class Data {
- Data({
- int? total,
- int? pageIndex,
- int? pageSize,
- List<SearchContentUser>? list,
- int? pageCursor,}){
- _total = total;
- _pageIndex = pageIndex;
- _pageSize = pageSize;
- _list = list;
- _pageCursor = pageCursor;
- }
- Data.fromJson(dynamic json) {
- _total = json['total'];
- _pageIndex = json['pageIndex'];
- _pageSize = json['pageSize'];
- if (json['list'] != null) {
- _list = [];
- json['list'].forEach((v) {
- _list?.add(SearchContentUser.fromJson(v));
- });
- }
- _pageCursor = json['pageCursor'];
- }
- int? _total;
- int? _pageIndex;
- int? _pageSize;
- List<SearchContentUser>? _list;
- int? _pageCursor;
- int? get total => _total;
- int? get pageIndex => _pageIndex;
- int? get pageSize => _pageSize;
- List<SearchContentUser>? get list => _list;
- int? get pageCursor => _pageCursor;
- Map<String, dynamic> toJson() {
- final map = <String, dynamic>{};
- map['total'] = _total;
- map['pageIndex'] = _pageIndex;
- map['pageSize'] = _pageSize;
- if (_list != null) {
- map['list'] = _list?.map((v) => v.toJson()).toList();
- }
- map['pageCursor'] = _pageCursor;
- return map;
- }
- }
- /// userId : "162116510154752"
- /// userName : "66纪念"
- /// userNo : "10811379"
- /// niceNo : null
- /// userAvatar : "http://user.qn.timichat.net/avatar/162116510154752/1631951244395.png"
- /// isLive : 0
- /// userLatitude : 30.287458
- /// userLongitude : 120.15358
- /// userDistance : 1.2866731490746794E7
- /// wealthLevel : 49
- /// charmLevel : 1
- /// starLevel : 16
- /// followStatus : false
- class SearchContentUser {
- SearchContentUser({
- String? userId,
- String? userName,
- String? userNo,
- dynamic niceNo,
- String? userAvatar,
- int? isLive,
- double? userLatitude,
- double? userLongitude,
- double? userDistance,
- int? wealthLevel,
- int? charmLevel,
- int? starLevel,
- bool? followStatus,}){
- _userId = userId;
- _userName = userName;
- _userNo = userNo;
- _niceNo = niceNo;
- _userAvatar = userAvatar;
- _isLive = isLive;
- _userLatitude = userLatitude;
- _userLongitude = userLongitude;
- _userDistance = userDistance;
- _wealthLevel = wealthLevel;
- _charmLevel = charmLevel;
- _starLevel = starLevel;
- followStatus = followStatus;
- }
- SearchContentUser.fromJson(dynamic json) {
- _userId = json['userId'];
- _userName = json['userName'];
- _userNo = json['userNo'];
- _niceNo = json['niceNo'];
- _userAvatar = json['userAvatar'];
- _isLive = json['isLive'];
- _userLatitude = json['userLatitude'];
- _userLongitude = json['userLongitude'];
- _userDistance = json['userDistance'];
- _wealthLevel = json['wealthLevel'];
- _charmLevel = json['charmLevel'];
- _starLevel = json['starLevel'];
- followStatus = json['followStatus'];
- }
- String? _userId;
- String? _userName;
- String? _userNo;
- dynamic _niceNo;
- String? _userAvatar;
- int? _isLive;
- double? _userLatitude;
- double? _userLongitude;
- double? _userDistance;
- int? _wealthLevel;
- int? _charmLevel;
- int? _starLevel;
- bool? followStatus;
- String? get userId => _userId;
- String? get userName => _userName;
- String? get userNo => _userNo;
- dynamic get niceNo => _niceNo;
- String? get userAvatar => _userAvatar;
- int? get isLive => _isLive;
- double? get userLatitude => _userLatitude;
- double? get userLongitude => _userLongitude;
- double? get userDistance => _userDistance;
- int? get wealthLevel => _wealthLevel;
- int? get charmLevel => _charmLevel;
- int? get starLevel => _starLevel;
- Map<String, dynamic> toJson() {
- final map = <String, dynamic>{};
- map['userId'] = _userId;
- map['userName'] = _userName;
- map['userNo'] = _userNo;
- map['niceNo'] = _niceNo;
- map['userAvatar'] = _userAvatar;
- map['isLive'] = _isLive;
- map['userLatitude'] = _userLatitude;
- map['userLongitude'] = _userLongitude;
- map['userDistance'] = _userDistance;
- map['wealthLevel'] = _wealthLevel;
- map['charmLevel'] = _charmLevel;
- map['starLevel'] = _starLevel;
- map['followStatus'] = followStatus;
- return map;
- }
- }
|