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.
 
 
 
 
 

75 lines
2.0 KiB

class VisitorModel {
final String? miId;
final String? profilePhoto;
final String? nickName;
final int? height;
final String? visitTime;
final String? education;
final int? age;
final int? minimumIncome;
final int? maximumIncome;
final String? income;
final String? describeInfo;
final int? vip;
final int? miSessionType;
final int? genderCode;
final int? onlineStatus;
VisitorModel({
this.miId,
this.profilePhoto,
this.nickName,
this.height,
this.visitTime,
this.education,
this.age,
this.minimumIncome,
this.maximumIncome,
this.income,
this.describeInfo,
this.vip,
this.miSessionType,
this.genderCode,
this.onlineStatus,
});
factory VisitorModel.fromJson(Map<String, dynamic> json) {
return VisitorModel(
miId: json['miId'] as String?,
profilePhoto: json['profilePhoto'] as String?,
nickName: json['nickName'] as String?,
height: json['height'] as int?,
visitTime: json['visitTime'] as String?,
education: json['education'] as String?,
age: json['age'] as int?,
minimumIncome: json['minimumIncome'] as int?,
maximumIncome: json['maximumIncome'] as int?,
income: json['income'] as String?,
describeInfo: json['describeInfo'] as String?,
vip: json['vip'] as int?,
miSessionType: json['miSessionType'] as int?,
genderCode: json['genderCode'] as int?,
onlineStatus: json['onlineStatus'] as int?,
);
}
Map<String, dynamic> toJson() {
return {
'miId': miId,
'profilePhoto': profilePhoto,
'nickName': nickName,
'height': height,
'visitTime': visitTime,
'education': education,
'age': age,
'minimumIncome': minimumIncome,
'maximumIncome': maximumIncome,
'income': income,
'describeInfo': describeInfo,
'vip': vip,
'miSessionType': miSessionType,
'genderCode': genderCode,
'onlineStatus': onlineStatus,
};
}
}