GeocoderLocationType$cast function

GeocoderLocationType? GeocoderLocationType$cast(
  1. dynamic value
)

Implementation

GeocoderLocationType? GeocoderLocationType$cast(value) {
  if (value == GeocoderLocationType.APPROXIMATE)
    return GeocoderLocationType.APPROXIMATE;
  if (value == GeocoderLocationType.GEOMETRIC_CENTER)
    return GeocoderLocationType.GEOMETRIC_CENTER;
  if (value == GeocoderLocationType.RANGE_INTERPOLATED)
    return GeocoderLocationType.RANGE_INTERPOLATED;
  if (value == GeocoderLocationType.ROOFTOP)
    return GeocoderLocationType.ROOFTOP;
  return null;
}