// 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 TXSpeedLevel {
  SPEED_LEVEL_SLOWEST /* null */,
  SPEED_LEVEL_SLOW /* null */,
  SPEED_LEVEL_NOMAL /* null */,
  SPEED_LEVEL_FAST /* null */,
  SPEED_LEVEL_FASTEST /* null */
}

extension TXSpeedLevelToX on TXSpeedLevel {
  int toValue() {
    switch (this) {
      case TXSpeedLevel.SPEED_LEVEL_SLOWEST: return TXSpeedLevel.SPEED_LEVEL_SLOWEST.index + 0;
      case TXSpeedLevel.SPEED_LEVEL_SLOW: return TXSpeedLevel.SPEED_LEVEL_SLOW.index + 0;
      case TXSpeedLevel.SPEED_LEVEL_NOMAL: return TXSpeedLevel.SPEED_LEVEL_NOMAL.index + 0;
      case TXSpeedLevel.SPEED_LEVEL_FAST: return TXSpeedLevel.SPEED_LEVEL_FAST.index + 0;
      case TXSpeedLevel.SPEED_LEVEL_FASTEST: return TXSpeedLevel.SPEED_LEVEL_FASTEST.index + 0;
      default: return 0;
    }
  }
}

extension TXSpeedLevelFromX on int {
  TXSpeedLevel toTXSpeedLevel() {
    switch (this) {
      
      default: return TXSpeedLevel.values[this + 0];
    }
  }
}