UsbDevice.fromMap constructor
UsbDevice.fromMap(
- Map map
Implementation
factory UsbDevice.fromMap(Map<dynamic, dynamic> map) {
return UsbDevice(
identifier: map['identifier'],
vendorId: map['vendorId'],
productId: map['productId'],
productName: map['productName'] ?? '',
deviceId: map['deviceId'],
deviceName: map['deviceName'],
manufacturerName: map['manufacturerName'] ?? '',
configurationCount: map['configurationCount'] ?? 0,
);
}