class BlacklistData { List? records; int? total; int? size; int? current; int? pages; BlacklistData( {this.records, this.total, this.size, this.current, this.pages}); BlacklistData.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? blackUserId; String? miId; String? nickName; String? profilePhoto; String? createTime; Records( {this.id, this.blackUserId, this.miId, this.nickName, this.profilePhoto, this.createTime}); Records.fromJson(Map json) { id = json['id']; blackUserId = json['blackUserId']; miId = json['miId']; nickName = json['nickName']; profilePhoto = json['profilePhoto']; createTime = json['createTime']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['blackUserId'] = this.blackUserId; data['miId'] = this.miId; data['nickName'] = this.nickName; data['profilePhoto'] = this.profilePhoto; data['createTime'] = this.createTime; return data; } }