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

public extension GoogleSignInButtonNativeSize {
  /**
   * Get a GoogleSignInButtonNativeSize for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "standard":
        self = .standard
      case "wide":
        self = .wide
      case "icon":
        self = .icon
      default:
        return nil
    }
  }

  /**
   * Get the String value this GoogleSignInButtonNativeSize represents.
   */
  var stringValue: String {
    switch self {
      case .standard:
        return "standard"
      case .wide:
        return "wide"
      case .icon:
        return "icon"
    }
  }
}
