ADAAccountUTXOResponse.fromJson constructor

ADAAccountUTXOResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ADAAccountUTXOResponse.fromJson(Map<String, dynamic> json) {
  return ADAAccountUTXOResponse(
      address: json['address'],
      txHash: json['tx_hash'],
      txIndex: json['tx_index'],
      outputIndex: json['output_index'],
      block: json['block'],
      dataHash: json['data_hash'],
      inlineDatum: json['inline_datum'],
      referenceScriptHash: json['reference_script_hash'],
      amount: (json["amount"] as List)
          .map((e) => ADAAmountResponse.fromJson(e))
          .toList());
}