ScanResult.fromMap constructor
ScanResult.fromMap(
- Map map
Implementation
factory ScanResult.fromMap(Map<dynamic, dynamic> map) {
return ScanResult(
length: map['length'] as int? ?? 0,
encodeType: map['encodeType'] as int? ?? 1,
barType: map['barType'] as int? ?? 0,
data: map['data'] as String?,
dataBytes: (map['dataBytes'] as List?)?.cast<int>(),
);
}