HardwareStatus.fromJson constructor
HardwareStatus.fromJson(
- Map json_
Implementation
HardwareStatus.fromJson(core.Map json_)
: this(
batteryTemperatures: json_.containsKey('batteryTemperatures')
? (json_['batteryTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
cpuTemperatures: json_.containsKey('cpuTemperatures')
? (json_['cpuTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
cpuUsages: json_.containsKey('cpuUsages')
? (json_['cpuUsages'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
fanSpeeds: json_.containsKey('fanSpeeds')
? (json_['fanSpeeds'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
gpuTemperatures: json_.containsKey('gpuTemperatures')
? (json_['gpuTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
skinTemperatures: json_.containsKey('skinTemperatures')
? (json_['skinTemperatures'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
);