You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.1 KiB
107 lines
3.1 KiB
/// vipNo : null |
|
/// nickname : "回乡_019921" |
|
/// headimg : "" |
|
/// userType : true |
|
/// sex : "" |
|
/// level : 1 |
|
/// addressId : "0" |
|
/// remark : "" |
|
/// phone : "15827991714" |
|
/// createTime : "2021-06-21 15:40:38" |
|
/// birth : "" |
|
/// balance : null |
|
/// money : "0.00" |
|
/// points : "0" |
|
/// isBind : null |
|
/// memberRankVo : null |
|
import 'package:huixiang/retrofit/data/member_rank.dart'; |
|
|
|
class UserInfo { |
|
UserInfo(); |
|
|
|
String vipNo; |
|
String nickname; |
|
String headimg; |
|
bool userType; |
|
String sex; |
|
int level; |
|
String addressId; |
|
String remark; |
|
String phone; |
|
String createTime; |
|
String birth; |
|
dynamic balance; |
|
String money; |
|
String expendAmount; |
|
String points; |
|
bool isBind; |
|
String masterId; |
|
int inviteNumber; |
|
int todayInviteNumber; |
|
String masterCardRankName; |
|
MemberRank memberRankVo; |
|
String inviteCode; |
|
String signature; |
|
String background; |
|
bool hasPayPassword; |
|
|
|
|
|
|
|
factory UserInfo.fromJson(Map<String, dynamic> json) => |
|
UserInfo() |
|
..vipNo = json['vipNo'] as String |
|
..nickname = json['nickname'] as String |
|
..headimg = json['headimg'] as String |
|
..userType = json['userType'] as bool |
|
..sex = json['sex'] as String |
|
..level = json['level'] as int |
|
..addressId = json['addressId'] as String |
|
..remark = json['remark'] as String |
|
..phone = json['phone'] as String |
|
..createTime = json['createTime'] as String |
|
..birth = json['birth'] as String |
|
..balance = json['balance'] |
|
..money = json['money'] as String |
|
..expendAmount = json['expendAmount'] as String |
|
..points = json['points'] as String |
|
..isBind = json['isBind'] as bool |
|
..masterId = json['masterId'] as String |
|
..inviteNumber = json['inviteNumber'] as int |
|
..todayInviteNumber = json['todayInviteNumber'] as int |
|
..masterCardRankName = json['masterCardRankName'] as String |
|
..inviteCode = json['inviteCode'] as String |
|
..signature = json['signature'] as String |
|
..background = json['background'] as String |
|
..hasPayPassword = json['hasPayPassword'] as bool |
|
..memberRankVo = json['memberRankVo'] == null |
|
? null |
|
: MemberRank.fromJson(json['memberRankVo'] as Map<String, dynamic>); |
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{ |
|
'vipNo': this.vipNo, |
|
'nickname': this.nickname, |
|
'headimg': this.headimg, |
|
'userType': this.userType, |
|
'sex': this.sex, |
|
'level': this.level, |
|
'addressId': this.addressId, |
|
'remark': this.remark, |
|
'phone': this.phone, |
|
'createTime': this.createTime, |
|
'birth': this.birth, |
|
'balance': this.balance, |
|
'money': this.money, |
|
'expendAmount': this.expendAmount, |
|
'points': this.points, |
|
'isBind': this.isBind, |
|
'masterId': this.masterId, |
|
"inviteNumber": this.inviteNumber, |
|
"todayInviteNumber": this.todayInviteNumber, |
|
'masterCardRankName': this.masterCardRankName, |
|
'inviteCode' : this.inviteCode, |
|
'signature' : this.signature, |
|
'background' : this.background, |
|
'hasPayPassword' : this.hasPayPassword, |
|
'memberRankVo': this.memberRankVo == null ? "" : this.memberRankVo.toJson(), |
|
}; |
|
}
|
|
|