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

public extension FitzpatrickSkinType {
  /**
   * Get a FitzpatrickSkinType for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "notSet":
        self = .notset
      case "I":
        self = .i
      case "II":
        self = .ii
      case "III":
        self = .iii
      case "IV":
        self = .iv
      case "V":
        self = .v
      case "VI":
        self = .vi
      default:
        return nil
    }
  }

  /**
   * Get the String value this FitzpatrickSkinType represents.
   */
  var stringValue: String {
    switch self {
      case .notset:
        return "notSet"
      case .i:
        return "I"
      case .ii:
        return "II"
      case .iii:
        return "III"
      case .iv:
        return "IV"
      case .v:
        return "V"
      case .vi:
        return "VI"
    }
  }
}
