ChromeOsDevice.fromJson constructor

ChromeOsDevice.fromJson(
  1. Map json_
)

Implementation

ChromeOsDevice.fromJson(core.Map json_)
    : this(
        activeTimeRanges: json_.containsKey('activeTimeRanges')
            ? (json_['activeTimeRanges'] as core.List)
                .map((value) => ChromeOsDeviceActiveTimeRanges.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        annotatedAssetId: json_.containsKey('annotatedAssetId')
            ? json_['annotatedAssetId'] as core.String
            : null,
        annotatedLocation: json_.containsKey('annotatedLocation')
            ? json_['annotatedLocation'] as core.String
            : null,
        annotatedUser: json_.containsKey('annotatedUser')
            ? json_['annotatedUser'] as core.String
            : null,
        autoUpdateExpiration: json_.containsKey('autoUpdateExpiration')
            ? json_['autoUpdateExpiration'] as core.String
            : null,
        autoUpdateThrough: json_.containsKey('autoUpdateThrough')
            ? json_['autoUpdateThrough'] as core.String
            : null,
        backlightInfo: json_.containsKey('backlightInfo')
            ? (json_['backlightInfo'] as core.List)
                .map((value) => BacklightInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        bootMode: json_.containsKey('bootMode')
            ? json_['bootMode'] as core.String
            : null,
        chromeOsType: json_.containsKey('chromeOsType')
            ? json_['chromeOsType'] as core.String
            : null,
        cpuInfo: json_.containsKey('cpuInfo')
            ? (json_['cpuInfo'] as core.List)
                .map((value) => ChromeOsDeviceCpuInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        cpuStatusReports: json_.containsKey('cpuStatusReports')
            ? (json_['cpuStatusReports'] as core.List)
                .map((value) => ChromeOsDeviceCpuStatusReports.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deprovisionReason: json_.containsKey('deprovisionReason')
            ? json_['deprovisionReason'] as core.String
            : null,
        deviceFiles: json_.containsKey('deviceFiles')
            ? (json_['deviceFiles'] as core.List)
                .map((value) => ChromeOsDeviceDeviceFiles.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deviceId: json_.containsKey('deviceId')
            ? json_['deviceId'] as core.String
            : null,
        deviceLicenseType: json_.containsKey('deviceLicenseType')
            ? json_['deviceLicenseType'] as core.String
            : null,
        diskVolumeReports: json_.containsKey('diskVolumeReports')
            ? (json_['diskVolumeReports'] as core.List)
                .map((value) => ChromeOsDeviceDiskVolumeReports.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dockMacAddress: json_.containsKey('dockMacAddress')
            ? json_['dockMacAddress'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        ethernetMacAddress: json_.containsKey('ethernetMacAddress')
            ? json_['ethernetMacAddress'] as core.String
            : null,
        ethernetMacAddress0: json_.containsKey('ethernetMacAddress0')
            ? json_['ethernetMacAddress0'] as core.String
            : null,
        extendedSupportEligible: json_.containsKey('extendedSupportEligible')
            ? json_['extendedSupportEligible'] as core.bool
            : null,
        extendedSupportEnabled: json_.containsKey('extendedSupportEnabled')
            ? json_['extendedSupportEnabled'] as core.bool
            : null,
        extendedSupportStart: json_.containsKey('extendedSupportStart')
            ? json_['extendedSupportStart'] as core.String
            : null,
        fanInfo: json_.containsKey('fanInfo')
            ? (json_['fanInfo'] as core.List)
                .map((value) => FanInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        firmwareVersion: json_.containsKey('firmwareVersion')
            ? json_['firmwareVersion'] as core.String
            : null,
        firstEnrollmentTime: json_.containsKey('firstEnrollmentTime')
            ? json_['firstEnrollmentTime'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        lastDeprovisionTimestamp:
            json_.containsKey('lastDeprovisionTimestamp')
                ? json_['lastDeprovisionTimestamp'] as core.String
                : null,
        lastEnrollmentTime: json_.containsKey('lastEnrollmentTime')
            ? core.DateTime.parse(json_['lastEnrollmentTime'] as core.String)
            : null,
        lastKnownNetwork: json_.containsKey('lastKnownNetwork')
            ? (json_['lastKnownNetwork'] as core.List)
                .map((value) => ChromeOsDeviceLastKnownNetwork.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        lastSync: json_.containsKey('lastSync')
            ? core.DateTime.parse(json_['lastSync'] as core.String)
            : null,
        macAddress: json_.containsKey('macAddress')
            ? json_['macAddress'] as core.String
            : null,
        manufactureDate: json_.containsKey('manufactureDate')
            ? json_['manufactureDate'] as core.String
            : null,
        meid: json_.containsKey('meid') ? json_['meid'] as core.String : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        notes:
            json_.containsKey('notes') ? json_['notes'] as core.String : null,
        orderNumber: json_.containsKey('orderNumber')
            ? json_['orderNumber'] as core.String
            : null,
        orgUnitId: json_.containsKey('orgUnitId')
            ? json_['orgUnitId'] as core.String
            : null,
        orgUnitPath: json_.containsKey('orgUnitPath')
            ? json_['orgUnitPath'] as core.String
            : null,
        osUpdateStatus: json_.containsKey('osUpdateStatus')
            ? OsUpdateStatus.fromJson(json_['osUpdateStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        osVersion: json_.containsKey('osVersion')
            ? json_['osVersion'] as core.String
            : null,
        platformVersion: json_.containsKey('platformVersion')
            ? json_['platformVersion'] as core.String
            : null,
        recentUsers: json_.containsKey('recentUsers')
            ? (json_['recentUsers'] as core.List)
                .map((value) => ChromeOsDeviceRecentUsers.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        screenshotFiles: json_.containsKey('screenshotFiles')
            ? (json_['screenshotFiles'] as core.List)
                .map((value) => ChromeOsDeviceScreenshotFiles.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        serialNumber: json_.containsKey('serialNumber')
            ? json_['serialNumber'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        supportEndDate: json_.containsKey('supportEndDate')
            ? core.DateTime.parse(json_['supportEndDate'] as core.String)
            : null,
        systemRamFreeReports: json_.containsKey('systemRamFreeReports')
            ? (json_['systemRamFreeReports'] as core.List)
                .map((value) => ChromeOsDeviceSystemRamFreeReports.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        systemRamTotal: json_.containsKey('systemRamTotal')
            ? json_['systemRamTotal'] as core.String
            : null,
        tpmVersionInfo: json_.containsKey('tpmVersionInfo')
            ? ChromeOsDeviceTpmVersionInfo.fromJson(json_['tpmVersionInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        willAutoRenew: json_.containsKey('willAutoRenew')
            ? json_['willAutoRenew'] as core.bool
            : null,
      );