// 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 TXSystemAudioVolumeType {
  SYSTEM_AUDIO_VOLUME_TYPE_AUTO /* 0 */,
  SYSTEM_AUDIO_VOLUME_TYPE_MEDIA /* 1 */,
  SYSTEM_AUDIO_VOLUME_TYPE_VOIP /* 2 */
}

extension TXSystemAudioVolumeTypeToX on TXSystemAudioVolumeType {
  int toValue() {
    switch (this) {
      case TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_AUTO: return 0;
      case TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_MEDIA: return 1;
      case TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_VOIP: return 2;
      default: return 0;
    }
  }
}

extension TXSystemAudioVolumeTypeFromX on int {
  TXSystemAudioVolumeType toTXSystemAudioVolumeType() {
    switch (this) {
      case 0: return TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_AUTO;
      case 1: return TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_MEDIA;
      case 2: return TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_VOIP;
      default: return TXSystemAudioVolumeType.values[this + 0];
    }
  }
}