toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountTypesWithManagementDisabled != null)
        'accountTypesWithManagementDisabled':
            accountTypesWithManagementDisabled!,
      if (addUserDisabled != null) 'addUserDisabled': addUserDisabled!,
      if (adjustVolumeDisabled != null)
        'adjustVolumeDisabled': adjustVolumeDisabled!,
      if (advancedSecurityOverrides != null)
        'advancedSecurityOverrides': advancedSecurityOverrides!,
      if (alwaysOnVpnPackage != null)
        'alwaysOnVpnPackage': alwaysOnVpnPackage!,
      if (androidDevicePolicyTracks != null)
        'androidDevicePolicyTracks': androidDevicePolicyTracks!,
      if (appAutoUpdatePolicy != null)
        'appAutoUpdatePolicy': appAutoUpdatePolicy!,
      if (applications != null) 'applications': applications!,
      if (autoDateAndTimeZone != null)
        'autoDateAndTimeZone': autoDateAndTimeZone!,
      if (autoTimeRequired != null) 'autoTimeRequired': autoTimeRequired!,
      if (blockApplicationsEnabled != null)
        'blockApplicationsEnabled': blockApplicationsEnabled!,
      if (bluetoothConfigDisabled != null)
        'bluetoothConfigDisabled': bluetoothConfigDisabled!,
      if (bluetoothContactSharingDisabled != null)
        'bluetoothContactSharingDisabled': bluetoothContactSharingDisabled!,
      if (bluetoothDisabled != null) 'bluetoothDisabled': bluetoothDisabled!,
      if (cameraAccess != null) 'cameraAccess': cameraAccess!,
      if (cameraDisabled != null) 'cameraDisabled': cameraDisabled!,
      if (cellBroadcastsConfigDisabled != null)
        'cellBroadcastsConfigDisabled': cellBroadcastsConfigDisabled!,
      if (choosePrivateKeyRules != null)
        'choosePrivateKeyRules': choosePrivateKeyRules!,
      if (complianceRules != null) 'complianceRules': complianceRules!,
      if (createWindowsDisabled != null)
        'createWindowsDisabled': createWindowsDisabled!,
      if (credentialProviderPolicyDefault != null)
        'credentialProviderPolicyDefault': credentialProviderPolicyDefault!,
      if (credentialsConfigDisabled != null)
        'credentialsConfigDisabled': credentialsConfigDisabled!,
      if (crossProfilePolicies != null)
        'crossProfilePolicies': crossProfilePolicies!,
      if (dataRoamingDisabled != null)
        'dataRoamingDisabled': dataRoamingDisabled!,
      if (debuggingFeaturesAllowed != null)
        'debuggingFeaturesAllowed': debuggingFeaturesAllowed!,
      if (defaultPermissionPolicy != null)
        'defaultPermissionPolicy': defaultPermissionPolicy!,
      if (deviceConnectivityManagement != null)
        'deviceConnectivityManagement': deviceConnectivityManagement!,
      if (deviceOwnerLockScreenInfo != null)
        'deviceOwnerLockScreenInfo': deviceOwnerLockScreenInfo!,
      if (deviceRadioState != null) 'deviceRadioState': deviceRadioState!,
      if (encryptionPolicy != null) 'encryptionPolicy': encryptionPolicy!,
      if (ensureVerifyAppsEnabled != null)
        'ensureVerifyAppsEnabled': ensureVerifyAppsEnabled!,
      if (factoryResetDisabled != null)
        'factoryResetDisabled': factoryResetDisabled!,
      if (frpAdminEmails != null) 'frpAdminEmails': frpAdminEmails!,
      if (funDisabled != null) 'funDisabled': funDisabled!,
      if (installAppsDisabled != null)
        'installAppsDisabled': installAppsDisabled!,
      if (installUnknownSourcesAllowed != null)
        'installUnknownSourcesAllowed': installUnknownSourcesAllowed!,
      if (keyguardDisabled != null) 'keyguardDisabled': keyguardDisabled!,
      if (keyguardDisabledFeatures != null)
        'keyguardDisabledFeatures': keyguardDisabledFeatures!,
      if (kioskCustomLauncherEnabled != null)
        'kioskCustomLauncherEnabled': kioskCustomLauncherEnabled!,
      if (kioskCustomization != null)
        'kioskCustomization': kioskCustomization!,
      if (locationMode != null) 'locationMode': locationMode!,
      if (longSupportMessage != null)
        'longSupportMessage': longSupportMessage!,
      if (maximumTimeToLock != null) 'maximumTimeToLock': maximumTimeToLock!,
      if (microphoneAccess != null) 'microphoneAccess': microphoneAccess!,
      if (minimumApiLevel != null) 'minimumApiLevel': minimumApiLevel!,
      if (mobileNetworksConfigDisabled != null)
        'mobileNetworksConfigDisabled': mobileNetworksConfigDisabled!,
      if (modifyAccountsDisabled != null)
        'modifyAccountsDisabled': modifyAccountsDisabled!,
      if (mountPhysicalMediaDisabled != null)
        'mountPhysicalMediaDisabled': mountPhysicalMediaDisabled!,
      if (name != null) 'name': name!,
      if (networkEscapeHatchEnabled != null)
        'networkEscapeHatchEnabled': networkEscapeHatchEnabled!,
      if (networkResetDisabled != null)
        'networkResetDisabled': networkResetDisabled!,
      if (oncCertificateProviders != null)
        'oncCertificateProviders': oncCertificateProviders!,
      if (openNetworkConfiguration != null)
        'openNetworkConfiguration': openNetworkConfiguration!,
      if (outgoingBeamDisabled != null)
        'outgoingBeamDisabled': outgoingBeamDisabled!,
      if (outgoingCallsDisabled != null)
        'outgoingCallsDisabled': outgoingCallsDisabled!,
      if (passwordPolicies != null) 'passwordPolicies': passwordPolicies!,
      if (passwordRequirements != null)
        'passwordRequirements': passwordRequirements!,
      if (permissionGrants != null) 'permissionGrants': permissionGrants!,
      if (permittedAccessibilityServices != null)
        'permittedAccessibilityServices': permittedAccessibilityServices!,
      if (permittedInputMethods != null)
        'permittedInputMethods': permittedInputMethods!,
      if (persistentPreferredActivities != null)
        'persistentPreferredActivities': persistentPreferredActivities!,
      if (personalUsagePolicies != null)
        'personalUsagePolicies': personalUsagePolicies!,
      if (playStoreMode != null) 'playStoreMode': playStoreMode!,
      if (policyEnforcementRules != null)
        'policyEnforcementRules': policyEnforcementRules!,
      if (preferentialNetworkService != null)
        'preferentialNetworkService': preferentialNetworkService!,
      if (printingPolicy != null) 'printingPolicy': printingPolicy!,
      if (privateKeySelectionEnabled != null)
        'privateKeySelectionEnabled': privateKeySelectionEnabled!,
      if (recommendedGlobalProxy != null)
        'recommendedGlobalProxy': recommendedGlobalProxy!,
      if (removeUserDisabled != null)
        'removeUserDisabled': removeUserDisabled!,
      if (safeBootDisabled != null) 'safeBootDisabled': safeBootDisabled!,
      if (screenCaptureDisabled != null)
        'screenCaptureDisabled': screenCaptureDisabled!,
      if (setUserIconDisabled != null)
        'setUserIconDisabled': setUserIconDisabled!,
      if (setWallpaperDisabled != null)
        'setWallpaperDisabled': setWallpaperDisabled!,
      if (setupActions != null) 'setupActions': setupActions!,
      if (shareLocationDisabled != null)
        'shareLocationDisabled': shareLocationDisabled!,
      if (shortSupportMessage != null)
        'shortSupportMessage': shortSupportMessage!,
      if (skipFirstUseHintsEnabled != null)
        'skipFirstUseHintsEnabled': skipFirstUseHintsEnabled!,
      if (smsDisabled != null) 'smsDisabled': smsDisabled!,
      if (statusBarDisabled != null) 'statusBarDisabled': statusBarDisabled!,
      if (statusReportingSettings != null)
        'statusReportingSettings': statusReportingSettings!,
      if (stayOnPluggedModes != null)
        'stayOnPluggedModes': stayOnPluggedModes!,
      if (systemUpdate != null) 'systemUpdate': systemUpdate!,
      if (tetheringConfigDisabled != null)
        'tetheringConfigDisabled': tetheringConfigDisabled!,
      if (uninstallAppsDisabled != null)
        'uninstallAppsDisabled': uninstallAppsDisabled!,
      if (unmuteMicrophoneDisabled != null)
        'unmuteMicrophoneDisabled': unmuteMicrophoneDisabled!,
      if (usageLog != null) 'usageLog': usageLog!,
      if (usbFileTransferDisabled != null)
        'usbFileTransferDisabled': usbFileTransferDisabled!,
      if (usbMassStorageEnabled != null)
        'usbMassStorageEnabled': usbMassStorageEnabled!,
      if (version != null) 'version': version!,
      if (vpnConfigDisabled != null) 'vpnConfigDisabled': vpnConfigDisabled!,
      if (wifiConfigDisabled != null)
        'wifiConfigDisabled': wifiConfigDisabled!,
      if (wifiConfigsLockdownEnabled != null)
        'wifiConfigsLockdownEnabled': wifiConfigsLockdownEnabled!,
    };