TrafficModel$cast function

TrafficModel? TrafficModel$cast(
  1. dynamic value
)

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;
}