// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

enum com_amap_api_services_route_RouteSearchV2_DrivingStrategy {
  DEFAULT /* null */,
  AVOID_CONGESTION /* null */,
  HIGHWAY_PRIORITY /* null */,
  AVOID_HIGHWAY /* null */,
  LESS_CHARGE /* null */,
  ROAD_PRIORITY /* null */,
  SPEED_PRIORITY /* null */,
  AVOID_CONGESTION_HIGHWAY_PRIORITY /* null */,
  AVOID_CONGESTION_AVOID_HIGHWAY /* null */,
  AVOID_CONGESTION_LESS_CHARGE /* null */,
  LESS_CHARGE_AVOID_HIGHWAY /* null */,
  AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY /* null */,
  AVOID_CONGESTION_ROAD_PRIORITY /* null */,
  AVOID_CONGESTION_SPEED_PRIORITY /* null */
}

extension com_amap_api_services_route_RouteSearchV2_DrivingStrategyToX on com_amap_api_services_route_RouteSearchV2_DrivingStrategy {
  int toValue() {
    switch (this) {
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.DEFAULT: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.DEFAULT.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.HIGHWAY_PRIORITY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.HIGHWAY_PRIORITY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_HIGHWAY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_HIGHWAY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.LESS_CHARGE: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.LESS_CHARGE.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.ROAD_PRIORITY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.ROAD_PRIORITY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.SPEED_PRIORITY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.SPEED_PRIORITY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_HIGHWAY_PRIORITY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_HIGHWAY_PRIORITY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_AVOID_HIGHWAY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_AVOID_HIGHWAY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_LESS_CHARGE: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_LESS_CHARGE.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.LESS_CHARGE_AVOID_HIGHWAY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.LESS_CHARGE_AVOID_HIGHWAY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_ROAD_PRIORITY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_ROAD_PRIORITY.index + 0;
      case com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_SPEED_PRIORITY: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.AVOID_CONGESTION_SPEED_PRIORITY.index + 0;
      default: return 0;
    }
  }
}

extension com_amap_api_services_route_RouteSearchV2_DrivingStrategyFromX on int {
  com_amap_api_services_route_RouteSearchV2_DrivingStrategy tocom_amap_api_services_route_RouteSearchV2_DrivingStrategy() {
    switch (this) {
      
      default: return com_amap_api_services_route_RouteSearchV2_DrivingStrategy.values[this + 0];
    }
  }
}