TrafficModel$cast function
Implementation
TrafficModel? TrafficModel$cast(value) {
if (value == TrafficModel.BEST_GUESS) return TrafficModel.BEST_GUESS;
if (value == TrafficModel.OPTIMISTIC) return TrafficModel.OPTIMISTIC;
if (value == TrafficModel.PESSIMISTIC) return TrafficModel.PESSIMISTIC;
return null;
}