trafficModelToString function

String trafficModelToString(
  1. TrafficModel type
)

Implementation

String trafficModelToString(TrafficModel type) {
  if (type == TrafficModel.bestGuess) return 'best_guess';
  if (type == TrafficModel.pessimistic) return 'pessimistic';
  if (type == TrafficModel.optimistic) return 'optimistic';
  return null;
}