class FriendData { List? records; int? total; int? size; int? current; int? pages; FriendData({this.records, this.total, this.size, this.current, this.pages}); FriendData.fromJson(Map json) { if (json['records'] != null) { records = []; json['records'].forEach((v) { records!.add(new Records.fromJson(v)); }); } total = json['total']; size = json['size']; current = json['current']; pages = json['pages']; } Map toJson() { final Map data = new Map(); 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? userId; String? miId; String? nickName; String? profilePhoto; int? genderCode; String? birthYear; String? birthDate; int? age; int? provinceCode; String? provinceName; int? cityCode; String? cityName; int? uid; Records( {this.id, this.userId, this.miId, this.nickName, this.profilePhoto, this.genderCode, this.birthYear, this.birthDate, this.age, this.provinceCode, this.provinceName, this.cityCode, this.cityName, this.uid}); Records.fromJson(Map json) { id = json['id']; userId = json['userId']; miId = json['miId']; nickName = json['nickName']; profilePhoto = json['profilePhoto']; genderCode = json['genderCode']; birthYear = json['birthYear']; birthDate = json['birthDate']; age = json['age']; provinceCode = json['provinceCode']; provinceName = json['provinceName']; cityCode = json['cityCode']; cityName = json['cityName']; uid = json['uid']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['userId'] = this.userId; data['miId'] = this.miId; data['nickName'] = this.nickName; data['profilePhoto'] = this.profilePhoto; data['genderCode'] = this.genderCode; 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; data['uid'] = this.uid; return data; } }