class UserPropData { int? current; int? pages; List? records; int? size; int? total; UserPropData({this.current, this.pages, this.records, this.size, this.total}); UserPropData.fromJson(Map json) { current = json['current']; pages = json['pages']; if (json['records'] != null) { records = []; json['records'].forEach((v) { records!.add(new Records.fromJson(v)); }); } size = json['size']; total = json['total']; } Map toJson() { final Map data = new Map(); data['current'] = this.current; data['pages'] = this.pages; if (this.records != null) { data['records'] = this.records!.map((v) => v.toJson()).toList(); } data['size'] = this.size; data['total'] = this.total; return data; } } class Records { bool? enable; String? endTime; int? id; String? logoUrl; String? name; int? num; String? startTime; int? type; int? userId; Records( {this.enable, this.endTime, this.id, this.logoUrl, this.name, this.num, this.startTime, this.type, this.userId}); Records.fromJson(Map json) { enable = json['enable']; endTime = json['endTime']; id = json['id']; logoUrl = json['logoUrl']; name = json['name']; num = json['num']; startTime = json['startTime']; type = json['type']; userId = json['userId']; } Map toJson() { final Map data = new Map(); data['enable'] = this.enable; data['endTime'] = this.endTime; data['id'] = this.id; data['logoUrl'] = this.logoUrl; data['name'] = this.name; data['num'] = this.num; data['startTime'] = this.startTime; data['type'] = this.type; data['userId'] = this.userId; return data; } }