MapsNetworkErrorEndpoint$cast function

MapsNetworkErrorEndpoint? MapsNetworkErrorEndpoint$cast(
  1. dynamic value
)

Implementation

MapsNetworkErrorEndpoint? MapsNetworkErrorEndpoint$cast(value) {
  if (value == MapsNetworkErrorEndpoint.DIRECTIONS_ROUTE)
    return MapsNetworkErrorEndpoint.DIRECTIONS_ROUTE;
  if (value == MapsNetworkErrorEndpoint.DISTANCE_MATRIX)
    return MapsNetworkErrorEndpoint.DISTANCE_MATRIX;
  if (value == MapsNetworkErrorEndpoint.ELEVATION_ALONG_PATH)
    return MapsNetworkErrorEndpoint.ELEVATION_ALONG_PATH;
  if (value == MapsNetworkErrorEndpoint.ELEVATION_LOCATIONS)
    return MapsNetworkErrorEndpoint.ELEVATION_LOCATIONS;
  if (value == MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_DELIVERY_VEHICLE)
    return MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_DELIVERY_VEHICLE;
  if (value == MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_TRIP)
    return MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_TRIP;
  if (value == MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_VEHICLE)
    return MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_VEHICLE;
  if (value == MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_DELIVERY_VEHICLES)
    return MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_DELIVERY_VEHICLES;
  if (value == MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_TASKS)
    return MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_TASKS;
  if (value == MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_VEHICLES)
    return MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_VEHICLES;
  if (value == MapsNetworkErrorEndpoint.FLEET_ENGINE_SEARCH_TASKS)
    return MapsNetworkErrorEndpoint.FLEET_ENGINE_SEARCH_TASKS;
  if (value == MapsNetworkErrorEndpoint.GEOCODER_GEOCODE)
    return MapsNetworkErrorEndpoint.GEOCODER_GEOCODE;
  if (value == MapsNetworkErrorEndpoint.MAPS_MAX_ZOOM)
    return MapsNetworkErrorEndpoint.MAPS_MAX_ZOOM;
  if (value == MapsNetworkErrorEndpoint.PLACES_AUTOCOMPLETE)
    return MapsNetworkErrorEndpoint.PLACES_AUTOCOMPLETE;
  if (value == MapsNetworkErrorEndpoint.PLACES_DETAILS)
    return MapsNetworkErrorEndpoint.PLACES_DETAILS;
  if (value == MapsNetworkErrorEndpoint.PLACES_FIND_PLACE_FROM_PHONE_NUMBER)
    return MapsNetworkErrorEndpoint.PLACES_FIND_PLACE_FROM_PHONE_NUMBER;
  if (value == MapsNetworkErrorEndpoint.PLACES_FIND_PLACE_FROM_QUERY)
    return MapsNetworkErrorEndpoint.PLACES_FIND_PLACE_FROM_QUERY;
  if (value == MapsNetworkErrorEndpoint.PLACES_GATEWAY)
    return MapsNetworkErrorEndpoint.PLACES_GATEWAY;
  if (value == MapsNetworkErrorEndpoint.PLACES_LOCAL_CONTEXT_SEARCH)
    return MapsNetworkErrorEndpoint.PLACES_LOCAL_CONTEXT_SEARCH;
  if (value == MapsNetworkErrorEndpoint.PLACES_NEARBY_SEARCH)
    return MapsNetworkErrorEndpoint.PLACES_NEARBY_SEARCH;
  if (value == MapsNetworkErrorEndpoint.STREETVIEW_GET_PANORAMA)
    return MapsNetworkErrorEndpoint.STREETVIEW_GET_PANORAMA;
  return null;
}