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