toJson method
Converts this instance into a json object map. E.g. JsonObject toJson() => {'name': name, 'age': age};
Implementation
@override
JsonObject toJson() => {
'text': text,
'rawBytes': rawBytes,
'barcodeFormat': describeEnum(barcodeFormat).toUpperCase(),
};