Assembly: OptimaJet.Workflow.Core

Class SystemTextDynamicParameterConverter

OptimaJet.Workflow.Core.Model.SystemTextDynamicParameterConverter

Provides a JsonConverter<T> for process parameter data represented by DynamicParameter. It reads non-null JSON values through DynamicParameter.ParseJson(string), writes DynamicParameter values through DynamicParameter.SerializeToJson(), and delegates other non-null values to JsonSerializer.

public class SystemTextDynamicParameterConverter : JsonConverter<object?>

Type Hierarchy

Methods

public override object? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #
Reads a JSON value, converting non-null input through DynamicParameter.ParseJson(string).

Parameters

Name
Type
Description
reader
Utf8JsonReader
The Utf8JsonReader positioned at the value to read.
typeToConvert
Type
The target Type; this converter does not use it.
options
JsonSerializerOptions
The JsonSerializerOptions used for deserialization; this converter does not use it.

Returns

Type
Description
Object
A scalar or collection value for the corresponding JSON value; a DynamicParameter for a JSON object; or null for a JSON null value.
public override void Write(Utf8JsonWriter writer, object? value, JsonSerializerOptions options) #
Writes value as JSON. A DynamicParameter is written from the representation returned by DynamicParameter.SerializeToJson(); other non-null values are serialized according to their runtime Type.

Parameters

Name
Type
Description
writer
Utf8JsonWriter
The Utf8JsonWriter that receives the JSON value.
value
Object
The value to write, or null to write a JSON null value.
options
JsonSerializerOptions
The JsonSerializerOptions used to serialize values other than DynamicParameter.