/// id : "1003703"
|
/// phone : "185****54"
|
/// nickName : "测试"
|
/// portrait : "http://buwan-1255749512.file.myqcloud.com/portrait_1640746276175.jpg"
|
/// wxNickName : "测试"
|
/// inviteCode : "AAAAAA"
|
|
class UserInfo {
|
UserInfo(
|
{String? id,
|
String? phone,
|
String? nickName,
|
String? portrait,
|
String? wxNickName,
|
String? inviteCode,
|
bool? hasBoss,
|
int? unReadMsgCount}) {
|
_id = id;
|
_phone = phone;
|
_nickName = nickName;
|
_portrait = portrait;
|
_wxNickName = wxNickName;
|
_inviteCode = inviteCode;
|
_hasBoss = hasBoss;
|
_unReadMsgCount = unReadMsgCount;
|
}
|
|
UserInfo.fromJson(dynamic json) {
|
_id = json['id'].toString();
|
_phone = json['phone'];
|
_nickName = json['nickName'];
|
_portrait = json['portrait'];
|
_wxNickName = json['wxNickName'];
|
_inviteCode = json['inviteCode'];
|
_hasBoss = json['hasBoss'];
|
_unReadMsgCount = json['unReadMsgCount'];
|
}
|
|
String? _id;
|
String? _phone;
|
String? _nickName;
|
String? _portrait;
|
String? _wxNickName;
|
String? _inviteCode;
|
bool? _hasBoss;
|
int? _unReadMsgCount;
|
|
String? get id => _id;
|
|
String? get phone => _phone;
|
|
String? get nickName => _nickName;
|
|
String? get portrait => _portrait;
|
|
String? get wxNickName => _wxNickName;
|
|
String? get inviteCode => _inviteCode;
|
|
bool? get hasBoss => _hasBoss;
|
|
int? get unReadMsgCount => _unReadMsgCount;
|
|
Map<String, dynamic> toJson() {
|
final map = <String, dynamic>{};
|
map['id'] = _id;
|
map['phone'] = _phone;
|
map['nickName'] = _nickName;
|
map['portrait'] = _portrait;
|
map['wxNickName'] = _wxNickName;
|
map['inviteCode'] = _inviteCode;
|
map['hasBoss'] = _hasBoss;
|
map['unReadMsgCount'] = _unReadMsgCount;
|
return map;
|
}
|
}
|