CPUInfo.fromJson constructor
CPUInfo.fromJson(
- Map json_
Implementation
CPUInfo.fromJson(core.Map json_)
: this(
cpuProcessor: json_.containsKey('cpuProcessor')
? json_['cpuProcessor'] as core.String
: null,
cpuSpeedInGhz: json_.containsKey('cpuSpeedInGhz')
? (json_['cpuSpeedInGhz'] as core.num).toDouble()
: null,
numberOfCores: json_.containsKey('numberOfCores')
? json_['numberOfCores'] as core.int
: null,
);