Barcode.fromMap constructor
create a barcode from a map
Implementation
factory Barcode.fromMap(Map<String, dynamic> map) {
return Barcode(
barcode: map['barcode'] ?? '',
format: map['format'] ?? '',
seen: map['seen'] ?? '',
interface:
toEnum(map['eventSource'], Interfaces.values) ?? Interfaces.unknown,
);
}