Class NewtonsoftDefaultValueJsonConverter
OptimaJet.Workflow.Core.Designer.NewtonsoftDefaultValueJsonConverter
Provides a JsonConverter that converts CodeActionParameterDefinition.DefaultValue between its string representation and JSON values.
Namespace: OptimaJet.Workflow.Core.Designer
public class NewtonsoftDefaultValueJsonConverter : JsonConverterType Hierarchy
- JsonConverter
- NewtonsoftDefaultValueJsonConverter Current type
Methods
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) #Writes the JSON representation of CodeActionParameterDefinition.DefaultValue.
Parameters
Name
Type
Description
writerJsonWriterThe JsonWriter that receives the JSON value.
serializerJsonSerializerThe JsonSerializer performing the serialization.
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) #Reads a JSON value into the string representation used by CodeActionParameterDefinition.DefaultValue.
Parameters
Name
Type
Description
readerJsonReaderThe JsonReader positioned at the value to read.
existingValueObjectThe existing value supplied by
serializer; this converter does not use it.serializerJsonSerializerThe JsonSerializer performing the deserialization; this converter does not use it.
Returns
Type
Description
ObjectThe string representation of the JSON value, or null when the current token is JsonToken.Null.