Class BarcodeDefectProfileConverter
- Namespace
- ScanbotSDK.MAUI.Core.Barcode
- Assembly
- ScanbotSDK.Shared.dll
Specifies the types of defects expected when scanning barcodes.
Selecting a profile that matches the expected barcode population can improve decoding performance.
public class BarcodeDefectProfileConverter : JsonConverter<BarcodeDefectProfile>
- Inheritance
-
BarcodeDefectProfileConverter
- Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type BarcodeDefectProfile.
public override BarcodeDefectProfile Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderThe reader.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsAn object that specifies serialization options to use.
Returns
- BarcodeDefectProfile
The converted value.
Write(Utf8JsonWriter, BarcodeDefectProfile, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, BarcodeDefectProfile color, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriterThe writer to write to.
colorBarcodeDefectProfileoptionsJsonSerializerOptionsAn object that specifies serialization options to use.