class ConnectHistoryData { List? records; int? total; int? size; int? current; int? pages; ConnectHistoryData( {this.records, this.total, this.size, this.current, this.pages}); ConnectHistoryData.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? createTime; String? anchorMiId; String? anchorProfilePhoto; String? anchorNickName; String? dateObjectMiId; String? dateObjectProfilePhoto; String? dateObjectNickName; int? dateObjectProvinceCode; String? dateObjectProvinceName; int? dateObjectCityCode; String? dateObjectCityName; String? dateObjectBirthYear; String? dateObjectBirthDate; int? dateObjectAge; Records( {this.createTime, this.anchorMiId, this.anchorProfilePhoto, this.anchorNickName, this.dateObjectMiId, this.dateObjectProfilePhoto, this.dateObjectNickName, this.dateObjectProvinceCode, this.dateObjectProvinceName, this.dateObjectCityCode, this.dateObjectCityName, this.dateObjectBirthYear, this.dateObjectBirthDate, this.dateObjectAge}); Records.fromJson(Map json) { createTime = json['createTime']; anchorMiId = json['anchorMiId']; anchorProfilePhoto = json['anchorProfilePhoto']; anchorNickName = json['anchorNickName']; dateObjectMiId = json['dateObjectMiId']; dateObjectProfilePhoto = json['dateObjectProfilePhoto']; dateObjectNickName = json['dateObjectNickName']; dateObjectProvinceCode = json['dateObjectProvinceCode']; dateObjectProvinceName = json['dateObjectProvinceName']; dateObjectCityCode = json['dateObjectCityCode']; dateObjectCityName = json['dateObjectCityName']; dateObjectBirthYear = json['dateObjectBirthYear']; dateObjectBirthDate = json['dateObjectBirthDate']; dateObjectAge = json['dateObjectAge']; } Map toJson() { final Map data = new Map(); data['createTime'] = this.createTime; data['anchorMiId'] = this.anchorMiId; data['anchorProfilePhoto'] = this.anchorProfilePhoto; data['anchorNickName'] = this.anchorNickName; data['dateObjectMiId'] = this.dateObjectMiId; data['dateObjectProfilePhoto'] = this.dateObjectProfilePhoto; data['dateObjectNickName'] = this.dateObjectNickName; data['dateObjectProvinceCode'] = this.dateObjectProvinceCode; data['dateObjectProvinceName'] = this.dateObjectProvinceName; data['dateObjectCityCode'] = this.dateObjectCityCode; data['dateObjectCityName'] = this.dateObjectCityName; data['dateObjectBirthYear'] = this.dateObjectBirthYear; data['dateObjectBirthDate'] = this.dateObjectBirthDate; data['dateObjectAge'] = this.dateObjectAge; return data; } }