// 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 TXAudioRouteType {
  AUDIO_ROUTE_SPEAKER /* 0 */,
  AUDIO_ROUTE_RECEIVER /* 1 */
}

extension TXAudioRouteTypeToX on TXAudioRouteType {
  int toValue() {
    switch (this) {
      case TXAudioRouteType.AUDIO_ROUTE_SPEAKER: return 0;
      case TXAudioRouteType.AUDIO_ROUTE_RECEIVER: return 1;
      default: return 0;
    }
  }
}

extension TXAudioRouteTypeFromX on int {
  TXAudioRouteType toTXAudioRouteType() {
    switch (this) {
      case 0: return TXAudioRouteType.AUDIO_ROUTE_SPEAKER;
      case 1: return TXAudioRouteType.AUDIO_ROUTE_RECEIVER;
      default: return TXAudioRouteType.values[this + 0];
    }
  }
}