toCurrencyCode method

CurrencyCode toCurrencyCode()

Implementation

CurrencyCode toCurrencyCode() {
  switch (this) {
    case 'USD':
      return CurrencyCode.usd;
  }
  throw Exception('$this is not known in enum CurrencyCode');
}