toMap method
Converts this ScanDataCollection to a Map suitable for sending over the platform channel.
Implementation
Map<String, dynamic> toMap() {
return {
'friendlyName': friendlyName,
'labelIdentifier': labelIdentifier,
'scannerResult': result?.value,
'scanData': scanData?.map((e) => e.toMap()).toList(),
'tokenizedData': tokenizedData?.toMap(),
};
}