PayloadSerializer.ConvertFromJsonObject<T>(Object) Method

Definition

Converts the JSON object using the serializer.

public abstract T ConvertFromJsonObject<T> (object jsonObjectToConvert);
abstract member ConvertFromJsonObject : obj -> 'T
Public MustOverride Function ConvertFromJsonObject(Of T) (jsonObjectToConvert As Object) As T

Type Parameters

T

The type to convert to.

Parameters

jsonObjectToConvert
Object

The object to convert.

Returns

T

A converted object

Remarks

This class is used to attempt to convert from the native serializer type (for example, JObject or JsonElement) to the desired type. When implementing this, be aware of what type the serializer will use for anonymous types.

Applies to