// 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 AMapWeatherType {
  AMapWeatherTypeLive /* 1 */,
  AMapWeatherTypeForecast /* null */
}

extension AMapWeatherTypeToX on AMapWeatherType {
  int toValue() {
    switch (this) {
      case AMapWeatherType.AMapWeatherTypeLive: return 1;
      case AMapWeatherType.AMapWeatherTypeForecast: return AMapWeatherType.AMapWeatherTypeForecast.index + 1;
      default: return 0;
    }
  }
}

extension AMapWeatherTypeFromX on int {
  AMapWeatherType toAMapWeatherType() {
    switch (this) {
      case 1: return AMapWeatherType.AMapWeatherTypeLive;
      default: return AMapWeatherType.values[this + 1];
    }
  }
}