VehicleType$cast function
Implementation
VehicleType? VehicleType$cast(value) {
if (value == VehicleType.BUS) return VehicleType.BUS;
if (value == VehicleType.CABLE_CAR) return VehicleType.CABLE_CAR;
if (value == VehicleType.COMMUTER_TRAIN) return VehicleType.COMMUTER_TRAIN;
if (value == VehicleType.FERRY) return VehicleType.FERRY;
if (value == VehicleType.FUNICULAR) return VehicleType.FUNICULAR;
if (value == VehicleType.GONDOLA_LIFT) return VehicleType.GONDOLA_LIFT;
if (value == VehicleType.HEAVY_RAIL) return VehicleType.HEAVY_RAIL;
if (value == VehicleType.HIGH_SPEED_TRAIN)
return VehicleType.HIGH_SPEED_TRAIN;
if (value == VehicleType.INTERCITY_BUS) return VehicleType.INTERCITY_BUS;
if (value == VehicleType.METRO_RAIL) return VehicleType.METRO_RAIL;
if (value == VehicleType.MONORAIL) return VehicleType.MONORAIL;
if (value == VehicleType.OTHER) return VehicleType.OTHER;
if (value == VehicleType.RAIL) return VehicleType.RAIL;
if (value == VehicleType.SHARE_TAXI) return VehicleType.SHARE_TAXI;
if (value == VehicleType.SUBWAY) return VehicleType.SUBWAY;
if (value == VehicleType.TRAM) return VehicleType.TRAM;
if (value == VehicleType.TROLLEYBUS) return VehicleType.TROLLEYBUS;
return null;
}