ChromeOsDeviceCpuInfo.fromJson constructor

ChromeOsDeviceCpuInfo.fromJson(
  1. Map json_
)

Implementation

ChromeOsDeviceCpuInfo.fromJson(core.Map json_)
    : this(
        architecture: json_.containsKey('architecture')
            ? json_['architecture'] as core.String
            : null,
        logicalCpus: json_.containsKey('logicalCpus')
            ? (json_['logicalCpus'] as core.List)
                .map((value) => ChromeOsDeviceCpuInfoLogicalCpus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        maxClockSpeedKhz: json_.containsKey('maxClockSpeedKhz')
            ? json_['maxClockSpeedKhz'] as core.int
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
      );