toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activeTimeRanges != null) 'activeTimeRanges': activeTimeRanges!,
      if (annotatedAssetId != null) 'annotatedAssetId': annotatedAssetId!,
      if (annotatedLocation != null) 'annotatedLocation': annotatedLocation!,
      if (annotatedUser != null) 'annotatedUser': annotatedUser!,
      if (autoUpdateExpiration != null)
        'autoUpdateExpiration': autoUpdateExpiration!,
      if (autoUpdateThrough != null) 'autoUpdateThrough': autoUpdateThrough!,
      if (backlightInfo != null) 'backlightInfo': backlightInfo!,
      if (bootMode != null) 'bootMode': bootMode!,
      if (chromeOsType != null) 'chromeOsType': chromeOsType!,
      if (cpuInfo != null) 'cpuInfo': cpuInfo!,
      if (cpuStatusReports != null) 'cpuStatusReports': cpuStatusReports!,
      if (deprovisionReason != null) 'deprovisionReason': deprovisionReason!,
      if (deviceFiles != null) 'deviceFiles': deviceFiles!,
      if (deviceId != null) 'deviceId': deviceId!,
      if (deviceLicenseType != null) 'deviceLicenseType': deviceLicenseType!,
      if (diskVolumeReports != null) 'diskVolumeReports': diskVolumeReports!,
      if (dockMacAddress != null) 'dockMacAddress': dockMacAddress!,
      if (etag != null) 'etag': etag!,
      if (ethernetMacAddress != null)
        'ethernetMacAddress': ethernetMacAddress!,
      if (ethernetMacAddress0 != null)
        'ethernetMacAddress0': ethernetMacAddress0!,
      if (extendedSupportEligible != null)
        'extendedSupportEligible': extendedSupportEligible!,
      if (extendedSupportEnabled != null)
        'extendedSupportEnabled': extendedSupportEnabled!,
      if (extendedSupportStart != null)
        'extendedSupportStart': extendedSupportStart!,
      if (fanInfo != null) 'fanInfo': fanInfo!,
      if (firmwareVersion != null) 'firmwareVersion': firmwareVersion!,
      if (firstEnrollmentTime != null)
        'firstEnrollmentTime': firstEnrollmentTime!,
      if (kind != null) 'kind': kind!,
      if (lastDeprovisionTimestamp != null)
        'lastDeprovisionTimestamp': lastDeprovisionTimestamp!,
      if (lastEnrollmentTime != null)
        'lastEnrollmentTime': lastEnrollmentTime!.toUtc().toIso8601String(),
      if (lastKnownNetwork != null) 'lastKnownNetwork': lastKnownNetwork!,
      if (lastSync != null) 'lastSync': lastSync!.toUtc().toIso8601String(),
      if (macAddress != null) 'macAddress': macAddress!,
      if (manufactureDate != null) 'manufactureDate': manufactureDate!,
      if (meid != null) 'meid': meid!,
      if (model != null) 'model': model!,
      if (notes != null) 'notes': notes!,
      if (orderNumber != null) 'orderNumber': orderNumber!,
      if (orgUnitId != null) 'orgUnitId': orgUnitId!,
      if (orgUnitPath != null) 'orgUnitPath': orgUnitPath!,
      if (osUpdateStatus != null) 'osUpdateStatus': osUpdateStatus!,
      if (osVersion != null) 'osVersion': osVersion!,
      if (platformVersion != null) 'platformVersion': platformVersion!,
      if (recentUsers != null) 'recentUsers': recentUsers!,
      if (screenshotFiles != null) 'screenshotFiles': screenshotFiles!,
      if (serialNumber != null) 'serialNumber': serialNumber!,
      if (status != null) 'status': status!,
      if (supportEndDate != null)
        'supportEndDate': supportEndDate!.toUtc().toIso8601String(),
      if (systemRamFreeReports != null)
        'systemRamFreeReports': systemRamFreeReports!,
      if (systemRamTotal != null) 'systemRamTotal': systemRamTotal!,
      if (tpmVersionInfo != null) 'tpmVersionInfo': tpmVersionInfo!,
      if (willAutoRenew != null) 'willAutoRenew': willAutoRenew!,
    };