Table of Contents

Class DriverIdJsonConverter

Namespace
DuetAPI.Utility
Assembly
DuetAPI.dll

Converter for DriverId instances

public sealed class DriverIdJsonConverter : JsonConverter<DriverId>
Inheritance
DriverIdJsonConverter
Inherited Members

Constructors

DriverIdJsonConverter()

public DriverIdJsonConverter()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Read an instance from JSON

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

Parameters

reader Utf8JsonReader

JSON reader

typeToConvert Type

Target type

options JsonSerializerOptions

JSON options

Returns

DriverId

Write(Utf8JsonWriter, DriverId?, JsonSerializerOptions)

Write an instance to JSON

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

Parameters

writer Utf8JsonWriter

JSON writer

value DriverId

Value to write

options JsonSerializerOptions

JSON options