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
1.8 KiB
75 lines
1.8 KiB
class FriendData {
|
|
List<Records>? records;
|
|
int? total;
|
|
int? size;
|
|
int? current;
|
|
int? pages;
|
|
|
|
FriendData({this.records, this.total, this.size, this.current, this.pages});
|
|
|
|
FriendData.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 {
|
|
int? genderCode;
|
|
String? id;
|
|
String? miId;
|
|
String? nickName;
|
|
String? profilePhoto;
|
|
String? uid;
|
|
String? userId;
|
|
|
|
Records(
|
|
{this.genderCode,
|
|
this.id,
|
|
this.miId,
|
|
this.nickName,
|
|
this.profilePhoto,
|
|
this.uid,
|
|
this.userId});
|
|
|
|
Records.fromJson(Map<String, dynamic> json) {
|
|
genderCode = json['genderCode'];
|
|
id = json['id'];
|
|
miId = json['miId'];
|
|
nickName = json['nickName'];
|
|
profilePhoto = json['profilePhoto'];
|
|
uid = json['uid'];
|
|
userId = json['userId'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['genderCode'] = this.genderCode;
|
|
data['id'] = this.id;
|
|
data['miId'] = this.miId;
|
|
data['nickName'] = this.nickName;
|
|
data['profilePhoto'] = this.profilePhoto;
|
|
data['uid'] = this.uid;
|
|
data['userId'] = this.userId;
|
|
return data;
|
|
}
|
|
}
|