TravelMode$cast function

TravelMode? TravelMode$cast(
  1. dynamic value
)

Implementation

TravelMode? TravelMode$cast(value) {
  if (value == TravelMode.BICYCLING) return TravelMode.BICYCLING;
  if (value == TravelMode.DRIVING) return TravelMode.DRIVING;
  if (value == TravelMode.TRANSIT) return TravelMode.TRANSIT;
  if (value == TravelMode.WALKING) return TravelMode.WALKING;
  return null;
}