ADAAddressSummaryResponse.fromJson constructor
ADAAddressSummaryResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ADAAddressSummaryResponse.fromJson(Map<String, dynamic> json) {
var amountList = json['amount'] as List;
List<ADAAmountResponse> amounts =
amountList.map((item) => ADAAmountResponse.fromJson(item)).toList();
return ADAAddressSummaryResponse(
address: json['address'],
amount: amounts,
type: json['type'],
script: json['script'],
stakeAddress: json['stake_address'],
);
}