fromDeviceJS static method
Implementation
static USBDeviceInfo fromDeviceJS(dynamic pairedDevice) {
return USBDeviceInfo(
getProperty(pairedDevice, 'usbVersionMajor'),
getProperty(pairedDevice, 'usbVersionMinor'),
getProperty(pairedDevice, 'usbVersionSubminor'),
getProperty(pairedDevice, 'deviceClass'),
getProperty(pairedDevice, 'deviceSubclass'),
getProperty(pairedDevice, 'deviceProtocol'),
getProperty(pairedDevice, 'vendorId'),
getProperty(pairedDevice, 'productId'),
getProperty(pairedDevice, 'deviceVersionMajor'),
getProperty(pairedDevice, 'deviceVersionMinor'),
getProperty(pairedDevice, 'deviceVersionSubminor'),
getProperty(pairedDevice, 'manufacturerName'),
getProperty(pairedDevice, 'productName'),
getProperty(pairedDevice, 'serialNumber'),
getProperty(pairedDevice, 'opened'),
);
}