// 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 AMapSearchCoordinateType {
  AMapSearchCoordinateTypeGPS /* 1 */,
  AMapSearchCoordinateTypeAMap /* 2 */
}

extension AMapSearchCoordinateTypeToX on AMapSearchCoordinateType {
  int toValue() {
    switch (this) {
      case AMapSearchCoordinateType.AMapSearchCoordinateTypeGPS: return 1;
      case AMapSearchCoordinateType.AMapSearchCoordinateTypeAMap: return 2;
      default: return 0;
    }
  }
}

extension AMapSearchCoordinateTypeFromX on int {
  AMapSearchCoordinateType toAMapSearchCoordinateType() {
    switch (this) {
      case 1: return AMapSearchCoordinateType.AMapSearchCoordinateTypeGPS;
      case 2: return AMapSearchCoordinateType.AMapSearchCoordinateTypeAMap;
      default: return AMapSearchCoordinateType.values[this + 1];
    }
  }
}