toRegionType method

RegionType toRegionType()

Implementation

RegionType toRegionType() {
  switch (this) {
    case 'Primary':
      return RegionType.primary;
    case 'Additional':
      return RegionType.additional;
  }
  throw Exception('$this is not known in enum RegionType');
}