Class CodeParameterConverter
Converts a CodeParameter instance to JSON
Inherited Members
Namespace: DuetAPI.Commands
Assembly: DuetAPI.dll
Syntax
public sealed class CodeParameterConverter : JsonConverter<CodeParameter>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Read a CodeParameter object from JSON
Declaration
public override CodeParameter 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 |
---|---|
CodeParameter | Read value |
Overrides
Write(Utf8JsonWriter, CodeParameter, JsonSerializerOptions)
Write a CodeParameter to JSON
Declaration
public override void Write(Utf8JsonWriter writer, CodeParameter value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | JSON writer |
CodeParameter | value | Value to serialize |
JsonSerializerOptions | options | Write options |