TravelMode$cast function
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;
}