fromAllInfo static method
convert from all info
Implementation
static DeviceStaticinfo fromAllInfo(AllInfo allInfo) {
return DeviceStaticinfo(
systemManufacturer: allInfo.system.manufacturer,
systemModel: allInfo.system.model,
systemSerial: allInfo.system.serial,
systemUuid: allInfo.system.uuid,
biosVendor: allInfo.bios.vendor,
///posiblity for change in details so keeping as empty String
biosVersion: '',
biosReleaseDate: allInfo.bios.releaseDate,
baseboardManufacturer: allInfo.baseBoard.manufacturer,
baseboardModel: allInfo.baseBoard.model,
baseboardSerial: allInfo.baseBoard.serial,
chassisManufacturer: allInfo.chassis.manufacturer,
chassisModel: allInfo.chassis.model,
chassisType: allInfo.chassis.type,
chassisSerial: allInfo.chassis.serial,
///will change if new product purchased and upgraded
osPlatform: allInfo.os.distro.contains('11')
? 'Windows 11'
: allInfo.os.distro.contains('10')
? 'Windows 10'
: allInfo.os.distro.contains('8')
? 'Windows 8'
: allInfo.os.distro.contains('7')
? 'Windows 7'
: allInfo.os.distro,
osDistro: allInfo.os.distro,
osRelease: '',
osArch: allInfo.os.arch,
osHostname: allInfo.os.hostname,
osBuild: allInfo.os.build,
osKernal: '',
osSerial: allInfo.os.serial,
uuidOs: allInfo.os.uuid,
cpuManufacturer: allInfo.cpu.manufacturer,
cpuBrand: allInfo.cpu.brand,
cpuSpeed: allInfo.cpu.speed,
cpuCores: allInfo.cpu.cores,
cpuPhysicalCores: allInfo.cpu.physicalCores,
cpuVendor: allInfo.cpu.vendor,
cpuSocket: allInfo.cpu.socket,
);
}