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.
126 lines
3.9 KiB
126 lines
3.9 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 vipScanNo; |
|
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 activityMoney; |
|
String expendAmount; |
|
String points; |
|
String greenMoney; |
|
String raiseMoney; |
|
String raiseExpireTime; |
|
bool isBind; |
|
String masterId; |
|
dynamic inviteNumber; |
|
dynamic todayInviteNumber; |
|
String masterCardRankName; |
|
MemberRank memberRankVo; |
|
String inviteCode; |
|
String signature; |
|
String background; |
|
bool hasPayPassword; |
|
String happyBean; |
|
bool isVip; |
|
|
|
factory UserInfo.fromJson(Map<String, dynamic> json) => |
|
UserInfo() |
|
..vipNo = json['vipNo'] as String |
|
..vipScanNo =json['vipScanNo'] 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 |
|
..activityMoney = json['activityMoney'] as String |
|
..expendAmount = json['expendAmount'] as String |
|
..points = json['points'] as String |
|
..greenMoney = json['greenMoney'] as String |
|
..raiseMoney = json['raiseMoney'] as String |
|
..raiseExpireTime = json['raiseExpireTime'] as String |
|
..isBind = json['isBind'] as bool |
|
..masterId = json['masterId'] as String |
|
..inviteNumber = json['inviteNumber'] as dynamic |
|
..todayInviteNumber = json['todayInviteNumber'] as dynamic |
|
..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 |
|
..happyBean = json['happyBean'] as String |
|
..isVip = json['isVip'] as bool |
|
..memberRankVo = json['memberRankVo'] == null |
|
? null |
|
: MemberRank.fromJson(json['memberRankVo'] as Map<String, dynamic>); |
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{ |
|
'vipNo': this.vipNo, |
|
'vipScanNo':this.vipScanNo, |
|
'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, |
|
'activityMoney': this.activityMoney, |
|
'expendAmount': this.expendAmount, |
|
'points': this.points, |
|
'greenMoney': this.greenMoney, |
|
'raiseMoney': this.raiseMoney, |
|
'raiseExpireTime': this.raiseExpireTime, |
|
'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, |
|
'happyBean':this.happyBean, |
|
'isVip':this.isVip, |
|
'memberRankVo': this.memberRankVo == null ? "" : this.memberRankVo.toJson(), |
|
}; |
|
}
|
|
|