Class KinematicsNameConverter
Class to convert a KinematicsName to and from JSON
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public class KinematicsNameConverter : JsonConverter<KinematicsName>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Read a KinematicsName from JSON
Declaration
public override KinematicsName Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonReader | reader | JSON reader |
Type | typeToConvert | Type to convert |
JsonSerializerOptions | options | Serializer options |
Returns
Type | Description |
---|---|
KinematicsName | Read value |
Overrides
Write(Utf8JsonWriter, KinematicsName, JsonSerializerOptions)
Write a KinematicsName to JSON
Declaration
public override void Write(Utf8JsonWriter writer, KinematicsName value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | JSON writer |
KinematicsName | value | Value to serialize |
JsonSerializerOptions | options | Write options |