ConnectionChange.fromMap constructor
Creates a ConnectionChange from a Map received via the platform channel.
Implementation
factory ConnectionChange.fromMap(Map<String, dynamic> map) {
return ConnectionChange(
scannerInfo: map['scannerInfo'] != null
? ScannerInfo.fromMap(Map<String, dynamic>.from(map['scannerInfo']))
: null,
connectionState: map['connectionState'] != null
? BarcodeManagerConnectionState.fromValue(
map['connectionState'] as String)
: null,
);
}