Table of Contents

Class CodeTypeConverter

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Converter class for CodeType

public class CodeTypeConverter : JsonConverter<CodeType>
Inheritance
CodeTypeConverter
Inherited Members

Constructors

CodeTypeConverter()

public CodeTypeConverter()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Read a JSON value and convert it to a HttpResponseType

public override CodeType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

JSON reader

typeToConvert Type

Target type

options JsonSerializerOptions

JSON options

Returns

CodeType

Deserialized value

Write(Utf8JsonWriter, CodeType, JsonSerializerOptions)

Write a HttpResponseType value to JSON

public override void Write(Utf8JsonWriter writer, CodeType value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

JSON writer

value CodeType

Value to write

options JsonSerializerOptions

JSON options