dev
dart 13 lines 443 Bytes
Raw
1 class TransferResult {
2 final String txHash;
3 final int txSize;
4 final String txUnsignedHex;
5
6 TransferResult({required this.txHash, required this.txSize, required this.txUnsignedHex});
7
8 factory TransferResult.fromJson(Map<String, dynamic> json) => TransferResult(
9 txHash: json['tx_hash'] as String? ?? '',
10 txSize: json['tx_size'] as int? ?? 0,
11 txUnsignedHex: json['tx_unsigned_hex'] as String? ?? '',
12 );
13 }