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.

108 lines
3.1 KiB

4 years ago
/// 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
4 years ago
import 'package:huixiang/retrofit/data/member_rank.dart';
4 years ago
4 years ago
class UserInfo {
UserInfo();
4 years ago
4 years ago
String vipNo;
4 years ago
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;
4 years ago
String points;
bool isBind;
String masterId;
int inviteNumber;
int todayInviteNumber;
String masterCardRankName;
4 years ago
MemberRank memberRankVo;
3 years ago
String inviteCode;
String signature;
String background;
bool hasPayPassword;
4 years ago
4 years ago
factory UserInfo.fromJson(Map<String, dynamic> json) =>
4 years ago
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
4 years ago
..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
3 years ago
..inviteCode = json['inviteCode'] as String
..signature = json['signature'] as String
..background = json['background'] as String
..hasPayPassword = json['hasPayPassword'] as bool
4 years ago
..memberRankVo = json['memberRankVo'] == null
? null
: MemberRank.fromJson(json['memberRankVo'] as Map<String, dynamic>);
4 years ago
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,
4 years ago
'points': this.points,
'isBind': this.isBind,
'masterId': this.masterId,
"inviteNumber": this.inviteNumber,
"todayInviteNumber": this.todayInviteNumber,
'masterCardRankName': this.masterCardRankName,
3 years ago
'inviteCode' : this.inviteCode,
'signature' : this.signature,
'background' : this.background,
'hasPayPassword' : this.hasPayPassword,
'memberRankVo': this.memberRankVo == null ? "" : this.memberRankVo.toJson(),
4 years ago
};
4 years ago
}