toJson method
override
Implementation
@override
Map<String, dynamic> toJson() {
return {
'hash': hash,
'block': block,
'confirmations': confirmations,
'timeMilli': timeMilli,
'amount': amount.toJson(),
'fee': fee?.toJson(),
'sender': sender,
'recipient': recipient,
'transferMethod': transferMethod.index,
'status': status.index,
'id': id,
'version': version,
'token': token.toJson(),
'inputs': inputs.map((e) => e.toJson()).toList(),
'outputs': outputs.map((e) => e.toJson()).toList(),
};
}