ISO4217Currency.fromNumCodetoObject constructor

ISO4217Currency.fromNumCodetoObject(
  1. String code
)

Creates an ISO4217Currency instance from an ISO 4217 3-letter currency code.

The code parameter is expected to be a valid ISO 4217 3-letter currency code.

Implementation

factory ISO4217Currency.fromNumCodetoObject(String code) {
  final currenciesMap = getCurrencyByNumCode(code);
  return ISO4217Currency.fromJson(currenciesMap);
}