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