// 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 TXVideoCompressed {
  VIDEO_COMPRESSED_360P /* 0 */,
  VIDEO_COMPRESSED_480P /* 1 */,
  VIDEO_COMPRESSED_540P /* 2 */,
  VIDEO_COMPRESSED_720P /* 3 */
}

extension TXVideoCompressedToX on TXVideoCompressed {
  int toValue() {
    switch (this) {
      case TXVideoCompressed.VIDEO_COMPRESSED_360P: return 0;
      case TXVideoCompressed.VIDEO_COMPRESSED_480P: return 1;
      case TXVideoCompressed.VIDEO_COMPRESSED_540P: return 2;
      case TXVideoCompressed.VIDEO_COMPRESSED_720P: return 3;
      default: return 0;
    }
  }
}

extension TXVideoCompressedFromX on int {
  TXVideoCompressed toTXVideoCompressed() {
    switch (this) {
      case 0: return TXVideoCompressed.VIDEO_COMPRESSED_360P;
      case 1: return TXVideoCompressed.VIDEO_COMPRESSED_480P;
      case 2: return TXVideoCompressed.VIDEO_COMPRESSED_540P;
      case 3: return TXVideoCompressed.VIDEO_COMPRESSED_720P;
      default: return TXVideoCompressed.values[this + 0];
    }
  }
}