WorldRegion.fromWireName constructor

WorldRegion.fromWireName(
  1. String wireName
)

Creates world region with a decoded json object from countries

Implementation

factory WorldRegion.fromWireName(String wireName) {
  switch (wireName) {
    case amerWireName:
      return amer;

    case apacWireName:
      return apac;

    case emeaWireName:
      return emea;

    default:
      throw ArgumentError('UnSupported wireName: $wireName');
  }
}