toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of BarcodeResponse.

Implementation

Map<String, dynamic> toJson() {
  return {
    'barcodeValue': barcodeValue,
    'type': type,
    'region': region,
    'checksum': checksum
  };
}