Assembly: OptimaJet.Workflow.Core

Class SystemTextDefaultValueJsonConverter

OptimaJet.Workflow.Core.Designer.SystemTextDefaultValueJsonConverter

Provides a JsonConverter<T> that converts CodeActionParameterDefinition.DefaultValue between its string representation and JSON values.

public class SystemTextDefaultValueJsonConverter : JsonConverter<string?>

Type Hierarchy

Methods

public override string? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #
Reads a JSON value into the string representation used by CodeActionParameterDefinition.DefaultValue.

Parameters

Name
Type
Description
reader
Utf8JsonReader
The Utf8JsonReader positioned at the value to read.
typeToConvert
Type
The target Type.
options
JsonSerializerOptions
The JsonSerializerOptions for the deserialization operation.

Returns

Type
Description
String
The JSON string value, the raw JSON text for a non-string value, or null when the current token is JsonTokenType.Null.
public override void Write(Utf8JsonWriter writer, string? value, JsonSerializerOptions options) #
Writes the JSON representation of CodeActionParameterDefinition.DefaultValue.

Parameters

Name
Type
Description
writer
Utf8JsonWriter
The Utf8JsonWriter that receives the JSON value.
value
String
The string value to serialize, or null to write JSON null.
options
JsonSerializerOptions
The JsonSerializerOptions for the serialization operation.