ChromeOsDeviceCpuStatusReports.fromJson constructor

ChromeOsDeviceCpuStatusReports.fromJson(
  1. Map json_
)

Implementation

ChromeOsDeviceCpuStatusReports.fromJson(core.Map json_)
    : this(
        cpuTemperatureInfo: json_.containsKey('cpuTemperatureInfo')
            ? (json_['cpuTemperatureInfo'] as core.List)
                .map((value) =>
                    ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        cpuUtilizationPercentageInfo:
            json_.containsKey('cpuUtilizationPercentageInfo')
                ? (json_['cpuUtilizationPercentageInfo'] as core.List)
                    .map((value) => value as core.int)
                    .toList()
                : null,
        reportTime: json_.containsKey('reportTime')
            ? core.DateTime.parse(json_['reportTime'] as core.String)
            : null,
      );