toJson method

Map<String, dynamic> toJson()

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()
  };
}