Class ConfigStateConverter
- Namespace
- ScanbotSDK.MAUI.Core.Barcode
- Assembly
- ScanbotSDK.Shared.dll
Specify whether a field should be enabled, disabled, or inherited.
public class ConfigStateConverter : JsonConverter<ConfigState>
- Inheritance
-
ConfigStateConverter
- Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type ConfigState.
public override ConfigState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderThe reader.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsAn object that specifies serialization options to use.
Returns
- ConfigState
The converted value.
Write(Utf8JsonWriter, ConfigState, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, ConfigState color, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriterThe writer to write to.
colorConfigStateoptionsJsonSerializerOptionsAn object that specifies serialization options to use.