BackgroundTaskBarcode.fromJson constructor
Implementation
BackgroundTaskBarcode.fromJson(super.json)
: barcode = json[_jsonTagBarcode] as String,
productType =
ProductType.fromOffTag(json[_jsonTagProductType] as String?) ??
// for legacy reason (not refreshed products = no product type)
ProductType.food,
super.fromJson();