// 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 TXVideoQuality {
  VIDEO_QUALITY_LOW /* 0 */,
  VIDEO_QUALITY_MEDIUM /* 1 */,
  VIDEO_QUALITY_HIGH /* 2 */
}

extension TXVideoQualityToX on TXVideoQuality {
  int toValue() {
    switch (this) {
      case TXVideoQuality.VIDEO_QUALITY_LOW: return 0;
      case TXVideoQuality.VIDEO_QUALITY_MEDIUM: return 1;
      case TXVideoQuality.VIDEO_QUALITY_HIGH: return 2;
      default: return 0;
    }
  }
}

extension TXVideoQualityFromX on int {
  TXVideoQuality toTXVideoQuality() {
    switch (this) {
      case 0: return TXVideoQuality.VIDEO_QUALITY_LOW;
      case 1: return TXVideoQuality.VIDEO_QUALITY_MEDIUM;
      case 2: return TXVideoQuality.VIDEO_QUALITY_HIGH;
      default: return TXVideoQuality.values[this + 0];
    }
  }
}