class FriendApplyData { List? records; int? total; int? size; int? current; int? pages; FriendApplyData( {this.records, this.total, this.size, this.current, this.pages}); FriendApplyData.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? fromUserId; String? fromMiId; int? fromUId; String? fromNickName; String? fromProfilePhoto; int? fromGenderCode; Null? applyMsg; int? status; String? birthYear; String? birthDate; int? age; int? provinceCode; String? provinceName; int? cityCode; String? cityName; Records( {this.id, this.fromUserId, this.fromMiId, this.fromUId, this.fromNickName, this.fromProfilePhoto, this.fromGenderCode, this.applyMsg, this.status, this.birthYear, this.birthDate, this.age, this.provinceCode, this.provinceName, this.cityCode, this.cityName}); Records.fromJson(Map json) { id = json['id']; fromUserId = json['fromUserId']; fromMiId = json['fromMiId']; fromUId = json['fromUId']; fromNickName = json['fromNickName']; fromProfilePhoto = json['fromProfilePhoto']; fromGenderCode = json['fromGenderCode']; 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 toJson() { final Map data = new Map(); data['id'] = this.id; data['fromUserId'] = this.fromUserId; data['fromMiId'] = this.fromMiId; data['fromUId'] = this.fromUId; data['fromNickName'] = this.fromNickName; data['fromProfilePhoto'] = this.fromProfilePhoto; data['fromGenderCode'] = this.fromGenderCode; 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; } }