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

/**
 * Represents the JS enum `PTSecurity`, backed by a C++ enum.
 */
public typealias PTSecurity = margelo.nitro.espprovtoolkit.PTSecurity

public extension PTSecurity {
  /**
   * Get a PTSecurity for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "SECURITY_0":
        self = .security0
      case "SECURITY_1":
        self = .security1
      case "SECURITY_2":
        self = .security2
      default:
        return nil
    }
  }

  /**
   * Get the String value this PTSecurity represents.
   */
  var stringValue: String {
    switch self {
      case .security0:
        return "SECURITY_0"
      case .security1:
        return "SECURITY_1"
      case .security2:
        return "SECURITY_2"
    }
  }
}
