CPUInfo.fromJson constructor

CPUInfo.fromJson(
  1. 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,
      );