Table of Contents

Class FlowActionAuth0SendRequestParamsPayload

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(FlowActionAuth0SendRequestParamsPayload.JsonConverter))]
[Serializable]
public class FlowActionAuth0SendRequestParamsPayload
Inheritance
FlowActionAuth0SendRequestParamsPayload
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

AsFlowActionAuth0SendRequestParamsPayloadObject()

public Dictionary<string, object?> AsFlowActionAuth0SendRequestParamsPayloadObject()

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.

FromFlowActionAuth0SendRequestParamsPayloadObject(Dictionary<string, object?>)

public static FlowActionAuth0SendRequestParamsPayload FromFlowActionAuth0SendRequestParamsPayloadObject(Dictionary<string, object?> value)

Parameters

value Dictionary<string, object>

Returns

FlowActionAuth0SendRequestParamsPayload

FromListOfUnknown(IEnumerable<object>)

public static FlowActionAuth0SendRequestParamsPayload FromListOfUnknown(IEnumerable<object> value)

Parameters

value IEnumerable<object>

Returns

FlowActionAuth0SendRequestParamsPayload

FromString(string)

Factory method to create a union from a string value.

public static FlowActionAuth0SendRequestParamsPayload FromString(string value)

Parameters

value string

Returns

FlowActionAuth0SendRequestParamsPayload

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsFlowActionAuth0SendRequestParamsPayloadObject()

Returns true if Type is "flowActionAuth0SendRequestParamsPayloadObject"

public bool IsFlowActionAuth0SendRequestParamsPayloadObject()

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<IEnumerable<object>, T>, Func<Dictionary<string, object?>, T>)

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

Parameters

onString Func<string, T>
onListOfUnknown Func<IEnumerable<object>, T>
onFlowActionAuth0SendRequestParamsPayloadObject Func<Dictionary<string, 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.

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

public bool TryGetFlowActionAuth0SendRequestParamsPayloadObject(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<IEnumerable<object>>, Action<Dictionary<string, object?>>)

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

Parameters

onString Action<string>
onListOfUnknown Action<IEnumerable<object>>
onFlowActionAuth0SendRequestParamsPayloadObject Action<Dictionary<string, object>>

Operators

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

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

Parameters

value Dictionary<string, object>

Returns

FlowActionAuth0SendRequestParamsPayload

implicit operator FlowActionAuth0SendRequestParamsPayload(string)

public static implicit operator FlowActionAuth0SendRequestParamsPayload(string value)

Parameters

value string

Returns

FlowActionAuth0SendRequestParamsPayload