BarcodeData.fromJson constructor
Creates a new instance of BarcodeData from a JSON object.
The json parameter must include the keys 'data' and 'type'.
Implementation
BarcodeData.fromJson(Map<String, dynamic> json) {
data = json['data'];
type = json['type'];
}