ChromeOsDeviceCpuInfoLogicalCpus.fromJson constructor

ChromeOsDeviceCpuInfoLogicalCpus.fromJson(
  1. Map json_
)

Implementation

ChromeOsDeviceCpuInfoLogicalCpus.fromJson(core.Map json_)
    : this(
        cStates: json_.containsKey('cStates')
            ? (json_['cStates'] as core.List)
                .map((value) =>
                    ChromeOsDeviceCpuInfoLogicalCpusCStates.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        currentScalingFrequencyKhz:
            json_.containsKey('currentScalingFrequencyKhz')
                ? json_['currentScalingFrequencyKhz'] as core.int
                : null,
        idleDuration: json_.containsKey('idleDuration')
            ? json_['idleDuration'] as core.String
            : null,
        maxScalingFrequencyKhz: json_.containsKey('maxScalingFrequencyKhz')
            ? json_['maxScalingFrequencyKhz'] as core.int
            : null,
      );