// 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 TX_Enum_Type_AutoAdjustStrategy {
  AUTO_ADJUST_NONE /* -1 */,
  AUTO_ADJUST_LIVEPUSH_STRATEGY /* 0 */,
  AUTO_ADJUST_LIVEPUSH_RESOLUTION_STRATEGY /* 1 */,
  AUTO_ADJUST_REALTIME_VIDEOCHAT_STRATEGY /* 5 */,
  AUTO_ADJUST_BITRATE_STRATEGY_1 /* 0 */,
  AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_1 /* 1 */,
  AUTO_ADJUST_BITRATE_STRATEGY_2 /* 2 */,
  AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_2 /* 3 */,
  AUTO_ADJUST_REALTIME_BITRATE_STRATEGY /* 4 */,
  AUTO_ADJUST_REALTIME_BITRATE_RESOLUTION_STRATEGY /* 5 */
}

extension TX_Enum_Type_AutoAdjustStrategyToX on TX_Enum_Type_AutoAdjustStrategy {
  int toValue() {
    switch (this) {
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_NONE: return -1;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_STRATEGY: return 0;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_RESOLUTION_STRATEGY: return 1;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_VIDEOCHAT_STRATEGY: return 5;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_1: return 0;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_1: return 1;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_2: return 2;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_2: return 3;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_STRATEGY: return 4;
      case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_RESOLUTION_STRATEGY: return 5;
      default: return 0;
    }
  }
}

extension TX_Enum_Type_AutoAdjustStrategyFromX on int {
  TX_Enum_Type_AutoAdjustStrategy toTX_Enum_Type_AutoAdjustStrategy() {
    switch (this) {
      case -1: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_NONE;
      case 0: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_STRATEGY;
      case 1: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_RESOLUTION_STRATEGY;
      case 5: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_VIDEOCHAT_STRATEGY;
      case 0: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_1;
      case 1: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_1;
      case 2: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_2;
      case 3: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_2;
      case 4: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_STRATEGY;
      case 5: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_RESOLUTION_STRATEGY;
      default: return TX_Enum_Type_AutoAdjustStrategy.values[this + -1];
    }
  }
}