toMap method
Converts this ConnectionChange to a Map suitable for sending over the platform channel.
Implementation
Map<String, dynamic> toMap() {
return {
'scannerInfo': scannerInfo?.toMap(),
'connectionState': connectionState?.value,
};
}