GoogleChromeManagementV1TelemetryDevice.fromJson constructor

GoogleChromeManagementV1TelemetryDevice.fromJson(
  1. Map json_
)

Implementation

GoogleChromeManagementV1TelemetryDevice.fromJson(core.Map json_)
    : this(
        appReport: json_.containsKey('appReport')
            ? (json_['appReport'] as core.List)
                .map((value) => GoogleChromeManagementV1AppReport.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        audioStatusReport: json_.containsKey('audioStatusReport')
            ? (json_['audioStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1AudioStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        batteryInfo: json_.containsKey('batteryInfo')
            ? (json_['batteryInfo'] as core.List)
                .map((value) => GoogleChromeManagementV1BatteryInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        batteryStatusReport: json_.containsKey('batteryStatusReport')
            ? (json_['batteryStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1BatteryStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        bootPerformanceReport: json_.containsKey('bootPerformanceReport')
            ? (json_['bootPerformanceReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1BootPerformanceReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        cpuInfo: json_.containsKey('cpuInfo')
            ? (json_['cpuInfo'] as core.List)
                .map((value) => GoogleChromeManagementV1CpuInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        cpuStatusReport: json_.containsKey('cpuStatusReport')
            ? (json_['cpuStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1CpuStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        customer: json_.containsKey('customer')
            ? json_['customer'] as core.String
            : null,
        deviceId: json_.containsKey('deviceId')
            ? json_['deviceId'] as core.String
            : null,
        graphicsInfo: json_.containsKey('graphicsInfo')
            ? GoogleChromeManagementV1GraphicsInfo.fromJson(
                json_['graphicsInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        graphicsStatusReport: json_.containsKey('graphicsStatusReport')
            ? (json_['graphicsStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1GraphicsStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        heartbeatStatusReport: json_.containsKey('heartbeatStatusReport')
            ? (json_['heartbeatStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1HeartbeatStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kioskAppStatusReport: json_.containsKey('kioskAppStatusReport')
            ? (json_['kioskAppStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1KioskAppStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        memoryInfo: json_.containsKey('memoryInfo')
            ? GoogleChromeManagementV1MemoryInfo.fromJson(
                json_['memoryInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        memoryStatusReport: json_.containsKey('memoryStatusReport')
            ? (json_['memoryStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1MemoryStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        networkBandwidthReport: json_.containsKey('networkBandwidthReport')
            ? (json_['networkBandwidthReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1NetworkBandwidthReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        networkDiagnosticsReport: json_
                .containsKey('networkDiagnosticsReport')
            ? (json_['networkDiagnosticsReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1NetworkDiagnosticsReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        networkInfo: json_.containsKey('networkInfo')
            ? GoogleChromeManagementV1NetworkInfo.fromJson(
                json_['networkInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        networkStatusReport: json_.containsKey('networkStatusReport')
            ? (json_['networkStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1NetworkStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        orgUnitId: json_.containsKey('orgUnitId')
            ? json_['orgUnitId'] as core.String
            : null,
        osUpdateStatus: json_.containsKey('osUpdateStatus')
            ? (json_['osUpdateStatus'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1OsUpdateStatus.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        peripheralsReport: json_.containsKey('peripheralsReport')
            ? (json_['peripheralsReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1PeripheralsReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        runtimeCountersReport: json_.containsKey('runtimeCountersReport')
            ? (json_['runtimeCountersReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1RuntimeCountersReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        serialNumber: json_.containsKey('serialNumber')
            ? json_['serialNumber'] as core.String
            : null,
        storageInfo: json_.containsKey('storageInfo')
            ? GoogleChromeManagementV1StorageInfo.fromJson(
                json_['storageInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        storageStatusReport: json_.containsKey('storageStatusReport')
            ? (json_['storageStatusReport'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1StorageStatusReport.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        thunderboltInfo: json_.containsKey('thunderboltInfo')
            ? (json_['thunderboltInfo'] as core.List)
                .map((value) =>
                    GoogleChromeManagementV1ThunderboltInfo.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );