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

public extension NitroInAppBrowserPresentationStyle {
  /**
   * Get a NitroInAppBrowserPresentationStyle for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "pageSheet":
        self = .pagesheet
      case "formSheet":
        self = .formsheet
      case "fullScreen":
        self = .fullscreen
      default:
        return nil
    }
  }

  /**
   * Get the String value this NitroInAppBrowserPresentationStyle represents.
   */
  var stringValue: String {
    switch self {
      case .pagesheet:
        return "pageSheet"
      case .formsheet:
        return "formSheet"
      case .fullscreen:
        return "fullScreen"
    }
  }
}
