// 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 TXVideoHomeOrientation {
  VIDOE_HOME_ORIENTATION_RIGHT /* 0 */,
  VIDEO_HOME_ORIENTATION_DOWN /* null */,
  VIDEO_HOME_ORIENTATION_LEFT /* null */,
  VIDOE_HOME_ORIENTATION_UP /* null */
}

extension TXVideoHomeOrientationToX on TXVideoHomeOrientation {
  int toValue() {
    switch (this) {
      case TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_RIGHT: return 0;
      case TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_DOWN: return TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_DOWN.index + 0;
      case TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_LEFT: return TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_LEFT.index + 0;
      case TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_UP: return TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_UP.index + 0;
      default: return 0;
    }
  }
}

extension TXVideoHomeOrientationFromX on int {
  TXVideoHomeOrientation toTXVideoHomeOrientation() {
    switch (this) {
      case 0: return TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_RIGHT;
      default: return TXVideoHomeOrientation.values[this + 0];
    }
  }
}