GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse.fromJson constructor

GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse.fromJson(
  1. Map json_
)

Implementation

GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse.fromJson(
    core.Map json_)
    : this(
        cpuReports: json_.containsKey('cpuReports')
            ? (json_['cpuReports'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1DeviceHardwareCountReport
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        memoryReports: json_.containsKey('memoryReports')
            ? (json_['memoryReports'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1DeviceHardwareCountReport
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        modelReports: json_.containsKey('modelReports')
            ? (json_['modelReports'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1DeviceHardwareCountReport
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        storageReports: json_.containsKey('storageReports')
            ? (json_['storageReports'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1DeviceHardwareCountReport
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );