GPUDevice.fromJson constructor
GPUDevice.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GPUDevice.fromJson(Map<String, dynamic> json) {
return GPUDevice(
vendorId: json['vendorId'] as num,
deviceId: json['deviceId'] as num,
subSysId: json.containsKey('subSysId') ? json['subSysId'] as num : null,
revision: json.containsKey('revision') ? json['revision'] as num : null,
vendorString: json['vendorString'] as String,
deviceString: json['deviceString'] as String,
driverVendor: json['driverVendor'] as String,
driverVersion: json['driverVersion'] as String,
);
}