///
/// Variant__any_HybridFrameSpec___any_HybridDepthSpec_.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///



/**
 * An Swift enum with associated values representing a Variant/Union type.
 * JS type: `hybrid-object | hybrid-object`
 */
@frozen
public indirect enum Variant__any_HybridFrameSpec___any_HybridDepthSpec_ {
  case first((any HybridFrameSpec))
  case second((any HybridDepthSpec))
}

public extension Variant__any_HybridFrameSpec___any_HybridDepthSpec_ {
  func asType<T>(_ type: T.Type = T.self) -> T? {
    switch self {
      case .first(let value): return value as? T
      case .second(let value): return value as? T
    }
  }
  func isType<T>(_ type: T.Type = T.self) -> Bool {
    return self.asType(type) != nil
  }
}
