transitRoutingPreferencesToString function

String transitRoutingPreferencesToString(
  1. TransitRoutingPreferences type
)

Implementation

String transitRoutingPreferencesToString(TransitRoutingPreferences type) {
  if (type == TransitRoutingPreferences.lessWalking) return 'less_walking';
  if (type == TransitRoutingPreferences.fewerTransfers) {
    return 'fewer_transfers';
  }
  return null;
}