///
/// CameraExtensionType.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 `CameraExtensionType`, backed by a C++ enum.
 */
public typealias CameraExtensionType = margelo.nitro.camera.CameraExtensionType

public extension CameraExtensionType {
  /**
   * Get a CameraExtensionType for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "auto":
        self = .auto
      case "bokeh":
        self = .bokeh
      case "hdr":
        self = .hdr
      case "night":
        self = .night
      case "face-retouch":
        self = .faceRetouch
      default:
        return nil
    }
  }

  /**
   * Get the String value this CameraExtensionType represents.
   */
  var stringValue: String {
    switch self {
      case .auto:
        return "auto"
      case .bokeh:
        return "bokeh"
      case .hdr:
        return "hdr"
      case .night:
        return "night"
      case .faceRetouch:
        return "face-retouch"
    }
  }
}
