Table of Contents

Class FlowActionFlowMapValueParamsFallback

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(FlowActionFlowMapValueParamsFallback.JsonConverter))]
[Serializable]
public class FlowActionFlowMapValueParamsFallback
Inheritance
FlowActionFlowMapValueParamsFallback
Inherited Members
Extension Methods

Properties

Type

Type discriminator

[JsonIgnore]
public string Type { get; }

Property Value

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsDouble()

Returns the value as a double if Type is 'double', otherwise throws an exception.

public double AsDouble()

Returns

double

Exceptions

ManagementException

Thrown when Type is not 'double'.

AsFlowActionFlowMapValueParamsFallbackObject()

public Dictionary<string, object?> AsFlowActionFlowMapValueParamsFallbackObject()

Returns

Dictionary<string, object>

AsListOfUnknown()

public IEnumerable<object> AsListOfUnknown()

Returns

IEnumerable<object>

AsString()

Returns the value as a string if Type is 'string', otherwise throws an exception.

public string AsString()

Returns

string

Exceptions

ManagementException

Thrown when Type is not 'string'.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromDouble(double)

Factory method to create a union from a double value.

public static FlowActionFlowMapValueParamsFallback FromDouble(double value)

Parameters

value double

Returns

FlowActionFlowMapValueParamsFallback

FromFlowActionFlowMapValueParamsFallbackObject(Dictionary<string, object?>)

public static FlowActionFlowMapValueParamsFallback FromFlowActionFlowMapValueParamsFallbackObject(Dictionary<string, object?> value)

Parameters

value Dictionary<string, object>

Returns

FlowActionFlowMapValueParamsFallback

FromListOfUnknown(IEnumerable<object>)

public static FlowActionFlowMapValueParamsFallback FromListOfUnknown(IEnumerable<object> value)

Parameters

value IEnumerable<object>

Returns

FlowActionFlowMapValueParamsFallback

FromString(string)

Factory method to create a union from a string value.

public static FlowActionFlowMapValueParamsFallback FromString(string value)

Parameters

value string

Returns

FlowActionFlowMapValueParamsFallback

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsDouble()

Returns true if Type is "double"

public bool IsDouble()

Returns

bool

IsFlowActionFlowMapValueParamsFallbackObject()

Returns true if Type is "flowActionFlowMapValueParamsFallbackObject"

public bool IsFlowActionFlowMapValueParamsFallbackObject()

Returns

bool

IsListOfUnknown()

Returns true if Type is "list"

public bool IsListOfUnknown()

Returns

bool

IsString()

Returns true if Type is "string"

public bool IsString()

Returns

bool

Match<T>(Func<string, T>, Func<double, T>, Func<Dictionary<string, object?>, T>, Func<IEnumerable<object>, T>)

public T Match<T>(Func<string, T> onString, Func<double, T> onDouble, Func<Dictionary<string, object?>, T> onFlowActionFlowMapValueParamsFallbackObject, Func<IEnumerable<object>, T> onListOfUnknown)

Parameters

onString Func<string, T>
onDouble Func<double, T>
onFlowActionFlowMapValueParamsFallbackObject Func<Dictionary<string, object>, T>
onListOfUnknown Func<IEnumerable<object>, T>

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.

TryGetDouble(out double?)

Attempts to cast the value to a double and returns true if successful.

public bool TryGetDouble(out double? value)

Parameters

value double?

Returns

bool

TryGetFlowActionFlowMapValueParamsFallbackObject(out Dictionary<string, object?>?)

public bool TryGetFlowActionFlowMapValueParamsFallbackObject(out Dictionary<string, object?>? value)

Parameters

value Dictionary<string, object>

Returns

bool

TryGetListOfUnknown(out IEnumerable<object>?)

public bool TryGetListOfUnknown(out IEnumerable<object>? value)

Parameters

value IEnumerable<object>

Returns

bool

TryGetString(out string?)

Attempts to cast the value to a string and returns true if successful.

public bool TryGetString(out string? value)

Parameters

value string

Returns

bool

Visit(Action<string>, Action<double>, Action<Dictionary<string, object?>>, Action<IEnumerable<object>>)

public void Visit(Action<string> onString, Action<double> onDouble, Action<Dictionary<string, object?>> onFlowActionFlowMapValueParamsFallbackObject, Action<IEnumerable<object>> onListOfUnknown)

Parameters

onString Action<string>
onDouble Action<double>
onFlowActionFlowMapValueParamsFallbackObject Action<Dictionary<string, object>>
onListOfUnknown Action<IEnumerable<object>>

Operators

implicit operator FlowActionFlowMapValueParamsFallback(Dictionary<string, object?>)

public static implicit operator FlowActionFlowMapValueParamsFallback(Dictionary<string, object?> value)

Parameters

value Dictionary<string, object>

Returns

FlowActionFlowMapValueParamsFallback

implicit operator FlowActionFlowMapValueParamsFallback(double)

public static implicit operator FlowActionFlowMapValueParamsFallback(double value)

Parameters

value double

Returns

FlowActionFlowMapValueParamsFallback

implicit operator FlowActionFlowMapValueParamsFallback(string)

public static implicit operator FlowActionFlowMapValueParamsFallback(string value)

Parameters

value string

Returns

FlowActionFlowMapValueParamsFallback