Class GCodeFileInfoConverter
Class used to convert G-code file info to and from JSON
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public class GCodeFileInfoConverter : JsonConverter<GCodeFileInfo>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Read a parsed file info object from a JSON reader
Declaration
public override GCodeFileInfo? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonReader | reader | JSON reader |
Type | typeToConvert | Target type |
JsonSerializerOptions | options | JSON options |
Returns
Type | Description |
---|---|
GCodeFileInfo | Parsed file info object |
Overrides
Write(Utf8JsonWriter, GCodeFileInfo, JsonSerializerOptions)
Write a parsed file info object to a JSON writer
Declaration
public override void Write(Utf8JsonWriter writer, GCodeFileInfo value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | JSON writer |
GCodeFileInfo | value | Machine model |
JsonSerializerOptions | options | JSON options |