HardwareInfo.fromJson constructor
HardwareInfo.fromJson(
- Map json_
Implementation
HardwareInfo.fromJson(core.Map json_)
: this(
batteryShutdownTemperatures:
json_.containsKey('batteryShutdownTemperatures')
? (json_['batteryShutdownTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
batteryThrottlingTemperatures:
json_.containsKey('batteryThrottlingTemperatures')
? (json_['batteryThrottlingTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
brand:
json_.containsKey('brand') ? json_['brand'] as core.String : null,
cpuShutdownTemperatures: json_.containsKey('cpuShutdownTemperatures')
? (json_['cpuShutdownTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
cpuThrottlingTemperatures:
json_.containsKey('cpuThrottlingTemperatures')
? (json_['cpuThrottlingTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
deviceBasebandVersion: json_.containsKey('deviceBasebandVersion')
? json_['deviceBasebandVersion'] as core.String
: null,
enterpriseSpecificId: json_.containsKey('enterpriseSpecificId')
? json_['enterpriseSpecificId'] as core.String
: null,
gpuShutdownTemperatures: json_.containsKey('gpuShutdownTemperatures')
? (json_['gpuShutdownTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
gpuThrottlingTemperatures:
json_.containsKey('gpuThrottlingTemperatures')
? (json_['gpuThrottlingTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
hardware: json_.containsKey('hardware')
? json_['hardware'] as core.String
: null,
manufacturer: json_.containsKey('manufacturer')
? json_['manufacturer'] as core.String
: null,
model:
json_.containsKey('model') ? json_['model'] as core.String : null,
serialNumber: json_.containsKey('serialNumber')
? json_['serialNumber'] as core.String
: null,
skinShutdownTemperatures:
json_.containsKey('skinShutdownTemperatures')
? (json_['skinShutdownTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
skinThrottlingTemperatures:
json_.containsKey('skinThrottlingTemperatures')
? (json_['skinThrottlingTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
);