Returns a JSON representation of BarcodeResponse.
Map<String, dynamic> toJson() { return { 'barcodeValue': barcodeValue, 'type': type, 'region': region, 'checksum': checksum }; }