toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (apiLevel != null) 'apiLevel': apiLevel!,
      if (applicationReports != null)
        'applicationReports': applicationReports!,
      if (appliedPasswordPolicies != null)
        'appliedPasswordPolicies': appliedPasswordPolicies!,
      if (appliedPolicyName != null) 'appliedPolicyName': appliedPolicyName!,
      if (appliedPolicyVersion != null)
        'appliedPolicyVersion': appliedPolicyVersion!,
      if (appliedState != null) 'appliedState': appliedState!,
      if (commonCriteriaModeInfo != null)
        'commonCriteriaModeInfo': commonCriteriaModeInfo!,
      if (deviceSettings != null) 'deviceSettings': deviceSettings!,
      if (disabledReason != null) 'disabledReason': disabledReason!,
      if (displays != null) 'displays': displays!,
      if (dpcMigrationInfo != null) 'dpcMigrationInfo': dpcMigrationInfo!,
      if (enrollmentTime != null) 'enrollmentTime': enrollmentTime!,
      if (enrollmentTokenData != null)
        'enrollmentTokenData': enrollmentTokenData!,
      if (enrollmentTokenName != null)
        'enrollmentTokenName': enrollmentTokenName!,
      if (hardwareInfo != null) 'hardwareInfo': hardwareInfo!,
      if (hardwareStatusSamples != null)
        'hardwareStatusSamples': hardwareStatusSamples!,
      if (lastPolicyComplianceReportTime != null)
        'lastPolicyComplianceReportTime': lastPolicyComplianceReportTime!,
      if (lastPolicySyncTime != null)
        'lastPolicySyncTime': lastPolicySyncTime!,
      if (lastStatusReportTime != null)
        'lastStatusReportTime': lastStatusReportTime!,
      if (managementMode != null) 'managementMode': managementMode!,
      if (memoryEvents != null) 'memoryEvents': memoryEvents!,
      if (memoryInfo != null) 'memoryInfo': memoryInfo!,
      if (name != null) 'name': name!,
      if (networkInfo != null) 'networkInfo': networkInfo!,
      if (nonComplianceDetails != null)
        'nonComplianceDetails': nonComplianceDetails!,
      if (ownership != null) 'ownership': ownership!,
      if (policyCompliant != null) 'policyCompliant': policyCompliant!,
      if (policyName != null) 'policyName': policyName!,
      if (powerManagementEvents != null)
        'powerManagementEvents': powerManagementEvents!,
      if (previousDeviceNames != null)
        'previousDeviceNames': previousDeviceNames!,
      if (securityPosture != null) 'securityPosture': securityPosture!,
      if (softwareInfo != null) 'softwareInfo': softwareInfo!,
      if (state != null) 'state': state!,
      if (systemProperties != null) 'systemProperties': systemProperties!,
      if (user != null) 'user': user!,
      if (userName != null) 'userName': userName!,
    };