// 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 AMapDistanceSearchType {
  AMapDistanceSearchTypeStraight /* 0 */,
  AMapDistanceSearchTypeDrive /* 1 */,
  AMapDistanceSearchTypeWalk /* 3 */
}

extension AMapDistanceSearchTypeToX on AMapDistanceSearchType {
  int toValue() {
    switch (this) {
      case AMapDistanceSearchType.AMapDistanceSearchTypeStraight: return 0;
      case AMapDistanceSearchType.AMapDistanceSearchTypeDrive: return 1;
      case AMapDistanceSearchType.AMapDistanceSearchTypeWalk: return 3;
      default: return 0;
    }
  }
}

extension AMapDistanceSearchTypeFromX on int {
  AMapDistanceSearchType toAMapDistanceSearchType() {
    switch (this) {
      case 0: return AMapDistanceSearchType.AMapDistanceSearchTypeStraight;
      case 1: return AMapDistanceSearchType.AMapDistanceSearchTypeDrive;
      case 3: return AMapDistanceSearchType.AMapDistanceSearchTypeWalk;
      default: return AMapDistanceSearchType.values[this + 0];
    }
  }
}