// 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 AMapTruckSizeType {
  AMapTruckSizeTypeMini /* 1 */,
  AMapTruckSizeTypeLight /* 2 */,
  AMapTruckSizeTypeMedium /* 3 */,
  AMapTruckSizeTypeHeavy /* 4 */
}

extension AMapTruckSizeTypeToX on AMapTruckSizeType {
  int toValue() {
    switch (this) {
      case AMapTruckSizeType.AMapTruckSizeTypeMini: return 1;
      case AMapTruckSizeType.AMapTruckSizeTypeLight: return 2;
      case AMapTruckSizeType.AMapTruckSizeTypeMedium: return 3;
      case AMapTruckSizeType.AMapTruckSizeTypeHeavy: return 4;
      default: return 0;
    }
  }
}

extension AMapTruckSizeTypeFromX on int {
  AMapTruckSizeType toAMapTruckSizeType() {
    switch (this) {
      case 1: return AMapTruckSizeType.AMapTruckSizeTypeMini;
      case 2: return AMapTruckSizeType.AMapTruckSizeTypeLight;
      case 3: return AMapTruckSizeType.AMapTruckSizeTypeMedium;
      case 4: return AMapTruckSizeType.AMapTruckSizeTypeHeavy;
      default: return AMapTruckSizeType.values[this + 1];
    }
  }
}