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

public extension BiometryStatus {
  /**
   * Get a BiometryStatus for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "available":
        self = .available
      case "notEnrolled":
        self = .notenrolled
      case "notAvailable":
        self = .notavailable
      case "lockedOut":
        self = .lockedout
      case "unknown":
        self = .unknown
      default:
        return nil
    }
  }

  /**
   * Get the String value this BiometryStatus represents.
   */
  var stringValue: String {
    switch self {
      case .available:
        return "available"
      case .notenrolled:
        return "notEnrolled"
      case .notavailable:
        return "notAvailable"
      case .lockedout:
        return "lockedOut"
      case .unknown:
        return "unknown"
    }
  }
}
