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