class WithdrawHistoryModel { String code; String msg; List data; WithdrawHistoryModel({this.code, this.msg, this.data}); WithdrawHistoryModel.fromJson(Map json) { code = json['code']; msg = json['msg']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data.add(new Data.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['code'] = this.code; data['msg'] = this.msg; if (this.data != null) { data['data'] = this.data.map((v) => v.toJson()).toList(); } return data; } } class Data { num id; num userId; String userName; num type; num amount; String alipay; String bankAccount; String bankName; num status; String auditTime; String createdAt; Data( {this.id, this.userId, this.userName, this.type, this.amount, this.alipay, this.bankAccount, this.bankName, this.status, this.auditTime, this.createdAt}); Data.fromJson(Map json) { id = json['id']; userId = json['user_id']; userName = json['user_name']; type = json['type']; amount = json['amount']; alipay = json['alipay']; bankAccount = json['bank_account']; bankName = json['bank_name']; status = json['status']; auditTime = json['auditTime']; createdAt = json['created_at']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['user_id'] = this.userId; data['user_name'] = this.userName; data['type'] = this.type; data['amount'] = this.amount; data['alipay'] = this.alipay; data['bank_account'] = this.bankAccount; data['bank_name'] = this.bankName; data['status'] = this.status; data['auditTime'] = this.auditTime; data['created_at'] = this.createdAt; return data; } }