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.
84 lines
2.1 KiB
84 lines
2.1 KiB
class MatchmakerData {
|
|
List<Records>? records;
|
|
int? total;
|
|
int? size;
|
|
int? current;
|
|
int? pages;
|
|
|
|
MatchmakerData(
|
|
{this.records, this.total, this.size, this.current, this.pages});
|
|
|
|
MatchmakerData.fromJson(Map<String, dynamic> json) {
|
|
if (json['records'] != null) {
|
|
records = <Records>[];
|
|
json['records'].forEach((v) {
|
|
records!.add(new Records.fromJson(v));
|
|
});
|
|
}
|
|
total = json['total'];
|
|
size = json['size'];
|
|
current = json['current'];
|
|
pages = json['pages'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
if (this.records != null) {
|
|
data['records'] = this.records!.map((v) => v.toJson()).toList();
|
|
}
|
|
data['total'] = this.total;
|
|
data['size'] = this.size;
|
|
data['current'] = this.current;
|
|
data['pages'] = this.pages;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class Records {
|
|
String? miId;
|
|
String? userId;
|
|
String? matchmakerId;
|
|
String? profilePhoto;
|
|
String? nickName;
|
|
bool? isRealNameCertified;
|
|
String? birthYear;
|
|
String? birthDate;
|
|
int? age;
|
|
|
|
Records(
|
|
{this.miId,
|
|
this.userId,
|
|
this.matchmakerId,
|
|
this.profilePhoto,
|
|
this.nickName,
|
|
this.isRealNameCertified,
|
|
this.birthYear,
|
|
this.birthDate,
|
|
this.age});
|
|
|
|
Records.fromJson(Map<String, dynamic> json) {
|
|
miId = json['miId'];
|
|
userId = json['userId'];
|
|
matchmakerId = json['matchmakerId'];
|
|
profilePhoto = json['profilePhoto'];
|
|
nickName = json['nickName'];
|
|
isRealNameCertified = json['isRealNameCertified'];
|
|
birthYear = json['birthYear'];
|
|
birthDate = json['birthDate'];
|
|
age = json['age'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['miId'] = this.miId;
|
|
data['userId'] = this.userId;
|
|
data['matchmakerId'] = this.matchmakerId;
|
|
data['profilePhoto'] = this.profilePhoto;
|
|
data['nickName'] = this.nickName;
|
|
data['isRealNameCertified'] = this.isRealNameCertified;
|
|
data['birthYear'] = this.birthYear;
|
|
data['birthDate'] = this.birthDate;
|
|
data['age'] = this.age;
|
|
return data;
|
|
}
|
|
}
|