// 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 TXVideoAspectRatio {
  VIDEO_ASPECT_RATIO_3_4 /* null */,
  VIDEO_ASPECT_RATIO_9_16 /* null */,
  VIDEO_ASPECT_RATIO_1_1 /* null */,
  VIDEO_ASPECT_RATIO_16_9 /* null */,
  VIDEO_ASPECT_RATIO_4_3 /* null */
}

extension TXVideoAspectRatioToX on TXVideoAspectRatio {
  int toValue() {
    switch (this) {
      case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_3_4: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_3_4.index + 0;
      case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_9_16: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_9_16.index + 0;
      case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_1_1: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_1_1.index + 0;
      case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_16_9: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_16_9.index + 0;
      case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_4_3: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_4_3.index + 0;
      default: return 0;
    }
  }
}

extension TXVideoAspectRatioFromX on int {
  TXVideoAspectRatio toTXVideoAspectRatio() {
    switch (this) {
      
      default: return TXVideoAspectRatio.values[this + 0];
    }
  }
}