// 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 TXEAVRoomHomeOrientation {
  AVROOM_HOME_ORIENTATION_RIGHT /* 0 */,
  AVROOM_HOME_ORIENTATION_DOWN /* null */,
  AVROOM_HOME_ORIENTATION_LEFT /* null */,
  AVROOM_HOME_ORIENTATION_UP /* null */
}

extension TXEAVRoomHomeOrientationToX on TXEAVRoomHomeOrientation {
  int toValue() {
    switch (this) {
      case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_RIGHT: return 0;
      case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_DOWN: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_DOWN.index + 0;
      case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_LEFT: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_LEFT.index + 0;
      case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_UP: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_UP.index + 0;
      default: return 0;
    }
  }
}

extension TXEAVRoomHomeOrientationFromX on int {
  TXEAVRoomHomeOrientation toTXEAVRoomHomeOrientation() {
    switch (this) {
      case 0: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_RIGHT;
      default: return TXEAVRoomHomeOrientation.values[this + 0];
    }
  }
}