Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class SystemTextLoopTypeConverter

OptimaJet.Workflow.Core.Plugins.LoopsPlugin.Other.SystemTextLoopTypeConverter

public class SystemTextLoopTypeConverter : JsonConverter<Loop?>

Inheritance

  • System.Object
  • System.Text.Json.Serialization.JsonConverter
  • System.Text.Json.Serialization.JsonConverter{OptimaJet.Workflow.Plugins.LoopsPlugin.Loop}

Methods

public override bool CanConvert(Type typeToConvert) #
Determines whether the specified type can be converted.

Parameters

Name
Type
Description
typeToConvert
Type
The type to compare against.

Returns

Type
Description
Boolean
true if the type can be converted; otherwise, false.
public override Loop? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #
Reads and converts the JSON to type Loop.

Parameters

Name
Type
Description
reader
Utf8JsonReader
The reader.
typeToConvert
Type
The type to convert.
options
JsonSerializerOptions
An object that specifies serialization options to use.

Returns

Type
Description
Loop
The converted value.
public override void Write(Utf8JsonWriter writer, Loop? value, JsonSerializerOptions options) #
Writes a specified value as JSON.

Parameters

Name
Type
Description
writer
Utf8JsonWriter
The writer to write to.
value
Loop
The value to convert to JSON.
options
JsonSerializerOptions
An object that specifies serialization options to use.