AccountCoinsRequest.fromMap constructor

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

Implementation

factory AccountCoinsRequest.fromMap(Map<String, dynamic> map) {
  return AccountCoinsRequest(
      NetworkIdentifier.fromMap(map["network_identifier"]),
      AccountIdentifier.fromMap(map["account_identifier"]),
      map["include_mempool"],
      map["currencies"] != null
          ? (map["currencies"] as List)
              .map((e) => Currency.fromMap(e))
              .toList()
          : null);
}