ADATransactionInput.fromJson constructor
ADATransactionInput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ADATransactionInput.fromJson(Map<String, dynamic> json) {
return ADATransactionInput(
address: json['address'],
txHash: json['tx_hash'],
outputIndex: json['output_index'],
dataHash: json['data_hash'],
inlineDatum: json['inline_datum'],
referenceScriptHash: json['reference_script_hash'],
collateral: json['collateral'],
reference: json['reference'],
amount: (json['amount'] as List?)
?.map((e) => ADATransactionAmount.fromJson(e))
.toList() ??
[],
);
}