ADABlockAddressTransactionsResponse.fromJson constructor

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

Implementation

factory ADABlockAddressTransactionsResponse.fromJson(
    Map<String, dynamic> json) {
  var transactionsList = json['transactions'] as List;
  List<String> transactions =
      transactionsList.map((item) => item['tx_hash'] as String).toList();

  return ADABlockAddressTransactionsResponse(
    address: json['address'],
    transactions: transactions,
  );
}