// 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 TXEAVRoomAudioMode {
  AVROOM_AUDIO_MODE_SPEAKER /* 0 */,
  AVROOM_AUDIO_MODE_RECEIVER /* 1 */
}

extension TXEAVRoomAudioModeToX on TXEAVRoomAudioMode {
  int toValue() {
    switch (this) {
      case TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_SPEAKER: return 0;
      case TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_RECEIVER: return 1;
      default: return 0;
    }
  }
}

extension TXEAVRoomAudioModeFromX on int {
  TXEAVRoomAudioMode toTXEAVRoomAudioMode() {
    switch (this) {
      case 0: return TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_SPEAKER;
      case 1: return TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_RECEIVER;
      default: return TXEAVRoomAudioMode.values[this + 0];
    }
  }
}