toJson method
Allows you to serialize object.
Implementation
Map<String, dynamic> toJson() => {
"sourceType": sourceType.value,
"value": value,
"originalValue": originalValue,
"pageIndex": pageIndex,
"boundRect": boundRect?.toJson(),
"rfidOrigin": rfidOrigin?.toJson(),
"originalSymbols": originalSymbols.map((e) => e.toJson()).toList(),
"probability": probability,
}.clearNulls();