toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'vendorId': vendorId,
'deviceId': deviceId,
'vendorString': vendorString,
'deviceString': deviceString,
'driverVendor': driverVendor,
'driverVersion': driverVersion,
if (subSysId != null) 'subSysId': subSysId,
if (revision != null) 'revision': revision,
};
}