// 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 TX_Enum_Type_HomeOrientation {
  HOME_ORIENTATION_RIGHT /* 0 */,
  HOME_ORIENTATION_DOWN /* 1 */,
  HOME_ORIENTATION_LEFT /* 2 */,
  HOME_ORIENTATION_UP /* 3 */
}

extension TX_Enum_Type_HomeOrientationToX on TX_Enum_Type_HomeOrientation {
  int toValue() {
    switch (this) {
      case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_RIGHT: return 0;
      case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_DOWN: return 1;
      case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_LEFT: return 2;
      case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_UP: return 3;
      default: return 0;
    }
  }
}

extension TX_Enum_Type_HomeOrientationFromX on int {
  TX_Enum_Type_HomeOrientation toTX_Enum_Type_HomeOrientation() {
    switch (this) {
      case 0: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_RIGHT;
      case 1: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_DOWN;
      case 2: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_LEFT;
      case 3: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_UP;
      default: return TX_Enum_Type_HomeOrientation.values[this + 0];
    }
  }
}