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.
112 lines
2.9 KiB
112 lines
2.9 KiB
class FriendApplyData {
|
|
List<Records>? records;
|
|
int? total;
|
|
int? size;
|
|
int? current;
|
|
int? pages;
|
|
|
|
FriendApplyData(
|
|
{this.records, this.total, this.size, this.current, this.pages});
|
|
|
|
FriendApplyData.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? id;
|
|
String? toUserId;
|
|
String? toMiId;
|
|
int? toUId;
|
|
String? toNickName;
|
|
String? toProfilePhoto;
|
|
int? toGenderCode;
|
|
Null? applyMsg;
|
|
int? status;
|
|
String? birthYear;
|
|
String? birthDate;
|
|
int? age;
|
|
int? provinceCode;
|
|
String? provinceName;
|
|
int? cityCode;
|
|
String? cityName;
|
|
|
|
Records(
|
|
{this.id,
|
|
this.toUserId,
|
|
this.toMiId,
|
|
this.toUId,
|
|
this.toNickName,
|
|
this.toProfilePhoto,
|
|
this.toGenderCode,
|
|
this.applyMsg,
|
|
this.status,
|
|
this.birthYear,
|
|
this.birthDate,
|
|
this.age,
|
|
this.provinceCode,
|
|
this.provinceName,
|
|
this.cityCode,
|
|
this.cityName});
|
|
|
|
Records.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
toUserId = json['toUserId'];
|
|
toMiId = json['toMiId'];
|
|
toUId = json['toUId'];
|
|
toNickName = json['toNickName'];
|
|
toProfilePhoto = json['toProfilePhoto'];
|
|
toGenderCode = json['toGenderCode'];
|
|
applyMsg = json['applyMsg'];
|
|
status = json['status'];
|
|
birthYear = json['birthYear'];
|
|
birthDate = json['birthDate'];
|
|
age = json['age'];
|
|
provinceCode = json['provinceCode'];
|
|
provinceName = json['provinceName'];
|
|
cityCode = json['cityCode'];
|
|
cityName = json['cityName'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['toUserId'] = this.toUserId;
|
|
data['toMiId'] = this.toMiId;
|
|
data['toUId'] = this.toUId;
|
|
data['toNickName'] = this.toNickName;
|
|
data['toProfilePhoto'] = this.toProfilePhoto;
|
|
data['toGenderCode'] = this.toGenderCode;
|
|
data['applyMsg'] = this.applyMsg;
|
|
data['status'] = this.status;
|
|
data['birthYear'] = this.birthYear;
|
|
data['birthDate'] = this.birthDate;
|
|
data['age'] = this.age;
|
|
data['provinceCode'] = this.provinceCode;
|
|
data['provinceName'] = this.provinceName;
|
|
data['cityCode'] = this.cityCode;
|
|
data['cityName'] = this.cityName;
|
|
return data;
|
|
}
|
|
}
|