Table of Contents

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

reader Utf8JsonReader

The reader.

typeToConvert Type

The type to convert.

options JsonSerializerOptions

An 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

writer Utf8JsonWriter

The writer to write to.

color BarcodeDefectProfile
options JsonSerializerOptions

An object that specifies serialization options to use.