// 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 MAParticleOverlayType {
  MAParticleOverlayTypeSunny /* 1 */,
  MAParticleOverlayTypeRain /* null */,
  MAParticleOverlayTypeSnowy /* null */,
  MAParticleOverlayTypeHaze /* null */
}

extension MAParticleOverlayTypeToX on MAParticleOverlayType {
  int toValue() {
    switch (this) {
      case MAParticleOverlayType.MAParticleOverlayTypeSunny: return 1;
      case MAParticleOverlayType.MAParticleOverlayTypeRain: return MAParticleOverlayType.MAParticleOverlayTypeRain.index + 1;
      case MAParticleOverlayType.MAParticleOverlayTypeSnowy: return MAParticleOverlayType.MAParticleOverlayTypeSnowy.index + 1;
      case MAParticleOverlayType.MAParticleOverlayTypeHaze: return MAParticleOverlayType.MAParticleOverlayTypeHaze.index + 1;
      default: return 0;
    }
  }
}

extension MAParticleOverlayTypeFromX on int {
  MAParticleOverlayType toMAParticleOverlayType() {
    switch (this) {
      case 1: return MAParticleOverlayType.MAParticleOverlayTypeSunny;
      default: return MAParticleOverlayType.values[this + 1];
    }
  }
}