toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'address': address,
'tx_hash': txHash,
'output_index': outputIndex,
'data_hash': dataHash,
'inline_datum': inlineDatum,
'reference_script_hash': referenceScriptHash,
'collateral': collateral,
'reference': reference,
'amount': amount.map((e) => e.toJson()).toList()
};
}