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.
Namespace: OptimaJet.Workflow.Core.Model
public class SystemTextDynamicParameterConverter : JsonConverter<object?>Type Hierarchy
- JsonConverter
- JsonConverter<object>
- SystemTextDynamicParameterConverter Current type
- JsonConverter<object>
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
optionsJsonSerializerOptionsThe JsonSerializerOptions used for deserialization; this converter does not use it.
Returns
Type
Description
ObjectA 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
optionsJsonSerializerOptionsThe JsonSerializerOptions used to serialize values other than DynamicParameter.