recharge_record.dart 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /// 充值记录 - GET uc/asset/recharge-list
  2. class RechargeRecord {
  3. final String id;
  4. /// 交易哈希(JSON: txid)
  5. final String txId;
  6. /// 币种代号(JSON: unit)
  7. final String coinName;
  8. /// 用户名(JSON: username)
  9. final String account;
  10. /// 充值地址
  11. final String address;
  12. /// 充值金额
  13. final String amount;
  14. /// 创建时间
  15. final String createTime;
  16. const RechargeRecord({
  17. this.id = '',
  18. this.txId = '',
  19. this.coinName = '',
  20. this.account = '',
  21. this.address = '',
  22. this.amount = '0',
  23. this.createTime = '',
  24. });
  25. factory RechargeRecord.fromJson(Map<String, dynamic> json) {
  26. return RechargeRecord(
  27. id: json['id']?.toString() ?? '',
  28. txId: json['txid']?.toString() ?? '',
  29. coinName: json['unit']?.toString() ?? '',
  30. account: json['username']?.toString() ?? '',
  31. address: json['address']?.toString() ?? '',
  32. amount: json['amount']?.toString() ?? '0',
  33. createTime: json['createTime']?.toString() ?? '',
  34. );
  35. }
  36. }