TransitMode$cast function

TransitMode? TransitMode$cast(
  1. dynamic value
)

Implementation

TransitMode? TransitMode$cast(value) {
  if (value == TransitMode.BUS) return TransitMode.BUS;
  if (value == TransitMode.RAIL) return TransitMode.RAIL;
  if (value == TransitMode.SUBWAY) return TransitMode.SUBWAY;
  if (value == TransitMode.TRAIN) return TransitMode.TRAIN;
  if (value == TransitMode.TRAM) return TransitMode.TRAM;
  return null;
}