// 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 AMapDrivingRouteShowFieldType {
  AMapDrivingRouteShowFieldTypeNone /* 1<<0 */,
  AMapDrivingRouteShowFieldTypeCost /* 1<<1 */,
  AMapDrivingRouteShowFieldTypeTmcs /* 1<<2 */,
  AMapDrivingRouteShowFieldTypeNavi /* 1<<3 */,
  AMapDrivingRouteShowFieldTypeCities /* 1<<4 */,
  AMapDrivingRouteShowFieldTypePolyline /* 1<<5 */,
  AMapDrivingRouteShowFieldTypeNewEnergy /* 1<<6 */,
  AMapDrivingRouteShowFieldTypeAll /* ~0 */
}

extension AMapDrivingRouteShowFieldTypeToX on AMapDrivingRouteShowFieldType {
  int toValue() {
    switch (this) {
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNone: return 1<<0;
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCost: return 1<<1;
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeTmcs: return 1<<2;
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNavi: return 1<<3;
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCities: return 1<<4;
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypePolyline: return 1<<5;
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNewEnergy: return 1<<6;
      case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeAll: return ~0;
      default: return 0;
    }
  }
}

extension AMapDrivingRouteShowFieldTypeFromX on int {
  AMapDrivingRouteShowFieldType toAMapDrivingRouteShowFieldType() {
    switch (this) {
      case 1<<0: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNone;
      case 1<<1: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCost;
      case 1<<2: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeTmcs;
      case 1<<3: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNavi;
      case 1<<4: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCities;
      case 1<<5: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypePolyline;
      case 1<<6: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNewEnergy;
      case ~0: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeAll;
      default: return AMapDrivingRouteShowFieldType.values[this + 1<<0];
    }
  }
}