// 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_VideoQuality {
  VIDEO_QUALITY_STANDARD_DEFINITION /* 1 */,
  VIDEO_QUALITY_HIGH_DEFINITION /* 2 */,
  VIDEO_QUALITY_SUPER_DEFINITION /* 3 */,
  VIDEO_QUALITY_ULTRA_DEFINITION /* 7 */,
  VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER /* 4 */,
  VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER /* 5 */,
  VIDEO_QUALITY_REALTIME_VIDEOCHAT /* 6 */
}

extension TX_Enum_Type_VideoQualityToX on TX_Enum_Type_VideoQuality {
  int toValue() {
    switch (this) {
      case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_STANDARD_DEFINITION: return 1;
      case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_HIGH_DEFINITION: return 2;
      case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_SUPER_DEFINITION: return 3;
      case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_ULTRA_DEFINITION: return 7;
      case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER: return 4;
      case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER: return 5;
      case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_REALTIME_VIDEOCHAT: return 6;
      default: return 0;
    }
  }
}

extension TX_Enum_Type_VideoQualityFromX on int {
  TX_Enum_Type_VideoQuality toTX_Enum_Type_VideoQuality() {
    switch (this) {
      case 1: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_STANDARD_DEFINITION;
      case 2: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_HIGH_DEFINITION;
      case 3: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_SUPER_DEFINITION;
      case 7: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_ULTRA_DEFINITION;
      case 4: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER;
      case 5: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER;
      case 6: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_REALTIME_VIDEOCHAT;
      default: return TX_Enum_Type_VideoQuality.values[this + 1];
    }
  }
}