Class FormNode
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(FormNode.JsonConverter))]
[Serializable]
public class FormNode
- Inheritance
-
FormNode
- Inherited Members
- Extension Methods
Properties
Type
Type discriminator
[JsonIgnore]
public string Type { get; }
Property Value
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsFormFlow()
public FormFlow AsFormFlow()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'formFlow'.
AsFormRouter()
Returns the value as a FormRouter if Type is 'formRouter', otherwise throws an exception.
public FormRouter AsFormRouter()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'formRouter'.
AsFormStep()
public FormStep AsFormStep()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'formStep'.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
FromFormFlow(FormFlow)
Factory method to create a union from a Auth0.ManagementApi.FormFlow value.
public static FormNode FromFormFlow(FormFlow value)
Parameters
valueFormFlow
Returns
FromFormRouter(FormRouter)
Factory method to create a union from a Auth0.ManagementApi.FormRouter value.
public static FormNode FromFormRouter(FormRouter value)
Parameters
valueFormRouter
Returns
FromFormStep(FormStep)
Factory method to create a union from a Auth0.ManagementApi.FormStep value.
public static FormNode FromFormStep(FormStep value)
Parameters
valueFormStep
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsFormFlow()
Returns true if Type is "formFlow"
public bool IsFormFlow()
Returns
IsFormRouter()
Returns true if Type is "formRouter"
public bool IsFormRouter()
Returns
IsFormStep()
Returns true if Type is "formStep"
public bool IsFormStep()
Returns
Match<T>(Func<FormFlow, T>, Func<FormRouter, T>, Func<FormStep, T>)
public T Match<T>(Func<FormFlow, T> onFormFlow, Func<FormRouter, T> onFormRouter, Func<FormStep, T> onFormStep)
Parameters
Returns
- T
Type Parameters
T
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryGetFormFlow(out FormFlow?)
Attempts to cast the value to a FormFlow and returns true if successful.
public bool TryGetFormFlow(out FormFlow? value)
Parameters
valueFormFlow
Returns
TryGetFormRouter(out FormRouter?)
Attempts to cast the value to a FormRouter and returns true if successful.
public bool TryGetFormRouter(out FormRouter? value)
Parameters
valueFormRouter
Returns
TryGetFormStep(out FormStep?)
Attempts to cast the value to a FormStep and returns true if successful.
public bool TryGetFormStep(out FormStep? value)
Parameters
valueFormStep
Returns
Visit(Action<FormFlow>, Action<FormRouter>, Action<FormStep>)
public void Visit(Action<FormFlow> onFormFlow, Action<FormRouter> onFormRouter, Action<FormStep> onFormStep)
Parameters
Operators
implicit operator FormNode(FormFlow)
public static implicit operator FormNode(FormFlow value)
Parameters
valueFormFlow
Returns
implicit operator FormNode(FormRouter)
public static implicit operator FormNode(FormRouter value)
Parameters
valueFormRouter
Returns
implicit operator FormNode(FormStep)
public static implicit operator FormNode(FormStep value)
Parameters
valueFormStep