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.
aku_new_community/lib/model/user/user_detail_model.dart

100 lines
2.4 KiB

class UserDetailModel {
4 years ago
int? id;
String? name;
int? type;
String? tel;
int? idType;
String? idNumber;
String? pwd;
String? confuse;
String? email;
int? createId;
String? createDate;
String? identity;
int? roomStatus;
String? nickName;
List<String>? estateNames;
int? nowEstateExamineId;
int? points;
bool? isSign;
UserDetailModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
type = json['type'];
tel = json['tel'];
idType = json['idType'];
idNumber = json['idNumber'];
pwd = json['pwd'];
confuse = json['confuse'];
email = json['email'];
createId = json['createId'];
createDate = json['createDate'];
identity = json['identity'];
roomStatus = json['roomStatus'];
nickName = json['nickName'];
if (json['estateNames'] != null)
estateNames = json['estateNames'].cast<String>();
else
estateNames = [];
if (json['estateNames'] == null) {
estateNames = [];
}
nowEstateExamineId = json['nowEstateExamineId'];
if (json['points'] != null) {
points = json['points'];
} else {
points = 0;
}
if (json['isSign'] != null) {
isSign = json['isSign'];
} else {
isSign = false;
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
data['type'] = this.type;
data['tel'] = this.tel;
data['idType'] = this.idType;
data['idNumber'] = this.idNumber;
data['pwd'] = this.pwd;
data['confuse'] = this.confuse;
data['email'] = this.email;
data['createId'] = this.createId;
data['createDate'] = this.createDate;
data['identity'] = this.identity;
data['roomStatus'] = this.roomStatus;
data['nickName'] = this.nickName;
data['estateNames'] = this.estateNames;
data['nowEstateExamineId'] = this.nowEstateExamineId;
data['points'] = this.points;
data['isSign'] = this.isSign;
return data;
}
UserDetailModel({
this.id,
this.name,
this.type,
this.tel,
this.idType,
this.idNumber,
this.pwd,
this.confuse,
this.email,
this.createId,
this.createDate,
this.identity,
this.roomStatus,
this.nickName,
this.estateNames,
this.nowEstateExamineId,
required this.points,
required this.isSign,
});
}