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

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

  /**
   * Get the String value this GoogleSignInButtonContentAlignment represents.
   */
  var stringValue: String {
    switch self {
      case .center:
        return "center"
      case .leading:
        return "leading"
      case .trailing:
        return "trailing"
    }
  }
}
