toGeoSpatialDataRole method

GeoSpatialDataRole toGeoSpatialDataRole()

Implementation

GeoSpatialDataRole toGeoSpatialDataRole() {
  switch (this) {
    case 'COUNTRY':
      return GeoSpatialDataRole.country;
    case 'STATE':
      return GeoSpatialDataRole.state;
    case 'COUNTY':
      return GeoSpatialDataRole.county;
    case 'CITY':
      return GeoSpatialDataRole.city;
    case 'POSTCODE':
      return GeoSpatialDataRole.postcode;
    case 'LONGITUDE':
      return GeoSpatialDataRole.longitude;
    case 'LATITUDE':
      return GeoSpatialDataRole.latitude;
  }
  throw Exception('$this is not known in enum GeoSpatialDataRole');
}