toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'address': address,
      'tx_hash': txHash,
      'tx_index': txIndex,
      'output_index': outputIndex,
      'block': block,
      'data_hash': dataHash,
      'inline_datum': inlineDatum,
      'reference_script_hash': referenceScriptHash,
      "amount": amount.map((e) => e.toJson()).toList()
    };