You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
app/lib/models/withdraw_history_model.dart

86 lines
2.0 KiB

class WithdrawHistoryModel {
String code;
String msg;
List<Data> data;
WithdrawHistoryModel({this.code, this.msg, this.data});
WithdrawHistoryModel.fromJson(Map<String, dynamic> json) {
code = json['code'];
msg = json['msg'];
if (json['data'] != null) {
data = [];
json['data'].forEach((v) {
data.add(new Data.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
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<String, dynamic> 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<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
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;
}
}