fromJson static method

IsoCode fromJson(
  1. String isoCodeStr
)

Implementation

static IsoCode fromJson(String isoCodeStr) {
  final isoCode = isoCodeConversionMap[isoCodeStr];
  if (isoCode == null) {
    throw 'Iso code not found $isoCodeStr ';
  }
  return isoCode;
}