ScannerException.fromMap constructor
Creates a ScannerException from a Map received via the platform channel.
Implementation
factory ScannerException.fromMap(Map<String, dynamic> map) {
return ScannerException(
map['result'] != null
? ScannerResults.fromValue(map['result'] as String)
: ScannerResults.undefined,
map['message'] as String?,
);
}