///
/// AVModeIOSOption.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

/**
 * Represents the JS union `AVModeIOSOption`, backed by a C++ enum.
 */
public typealias AVModeIOSOption = margelo.nitro.sound.AVModeIOSOption

public extension AVModeIOSOption {
  /**
   * Get a AVModeIOSOption for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "gameChatAudio":
        self = .gamechataudio
      case "measurement":
        self = .measurement
      case "moviePlayback":
        self = .movieplayback
      case "spokenAudio":
        self = .spokenaudio
      case "videoChat":
        self = .videochat
      case "videoRecording":
        self = .videorecording
      case "voiceChat":
        self = .voicechat
      case "voicePrompt":
        self = .voiceprompt
      default:
        return nil
    }
  }

  /**
   * Get the String value this AVModeIOSOption represents.
   */
  var stringValue: String {
    switch self {
      case .gamechataudio:
        return "gameChatAudio"
      case .measurement:
        return "measurement"
      case .movieplayback:
        return "moviePlayback"
      case .spokenaudio:
        return "spokenAudio"
      case .videochat:
        return "videoChat"
      case .videorecording:
        return "videoRecording"
      case .voicechat:
        return "voiceChat"
      case .voiceprompt:
        return "voicePrompt"
    }
  }
}
