SearchTransactionsRequest.fromMap constructor

SearchTransactionsRequest.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SearchTransactionsRequest.fromMap(Map<String, dynamic> map) {
  return SearchTransactionsRequest(
      NetworkIdentifier.fromMap(map["network_identifier"]),
      map["operator"],
      map["max_block"],
      map["offset"],
      map["limit"],
      map["transaction_identifier"] != null
          ? TransactionIdentifier.fromMap(map["transaction_identifier"])
          : null,
      map["account_identifier"] != null
          ? AccountIdentifier.fromMap(map["account_identifier"])
          : null,
      map["coin_identifier"] != null
          ? CoinIdentifier.fromMap(map["coin_identifier"])
          : null,
      map["currency"] != null ? Currency.fromMap(map["currency"]) : null,
      map["status"],
      map["type"],
      map["address"],
      map["success"]);
}