// 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 TXVideoResolution {
  VIDEO_RESOLUTION_360_640 /* 0 */,
  VIDEO_RESOLUTION_540_960 /* 1 */,
  VIDEO_RESOLUTION_720_1280 /* 2 */,
  VIDEO_RESOLUTION_1080_1920 /* 3 */
}

extension TXVideoResolutionToX on TXVideoResolution {
  int toValue() {
    switch (this) {
      case TXVideoResolution.VIDEO_RESOLUTION_360_640: return 0;
      case TXVideoResolution.VIDEO_RESOLUTION_540_960: return 1;
      case TXVideoResolution.VIDEO_RESOLUTION_720_1280: return 2;
      case TXVideoResolution.VIDEO_RESOLUTION_1080_1920: return 3;
      default: return 0;
    }
  }
}

extension TXVideoResolutionFromX on int {
  TXVideoResolution toTXVideoResolution() {
    switch (this) {
      case 0: return TXVideoResolution.VIDEO_RESOLUTION_360_640;
      case 1: return TXVideoResolution.VIDEO_RESOLUTION_540_960;
      case 2: return TXVideoResolution.VIDEO_RESOLUTION_720_1280;
      case 3: return TXVideoResolution.VIDEO_RESOLUTION_1080_1920;
      default: return TXVideoResolution.values[this + 0];
    }
  }
}