Policy.fromJson constructor
Policy.fromJson(
- Map json_
Implementation
Policy.fromJson(core.Map json_)
: this(
accountTypesWithManagementDisabled:
json_.containsKey('accountTypesWithManagementDisabled')
? (json_['accountTypesWithManagementDisabled'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
addUserDisabled: json_.containsKey('addUserDisabled')
? json_['addUserDisabled'] as core.bool
: null,
adjustVolumeDisabled: json_.containsKey('adjustVolumeDisabled')
? json_['adjustVolumeDisabled'] as core.bool
: null,
advancedSecurityOverrides:
json_.containsKey('advancedSecurityOverrides')
? AdvancedSecurityOverrides.fromJson(
json_['advancedSecurityOverrides']
as core.Map<core.String, core.dynamic>)
: null,
alwaysOnVpnPackage: json_.containsKey('alwaysOnVpnPackage')
? AlwaysOnVpnPackage.fromJson(json_['alwaysOnVpnPackage']
as core.Map<core.String, core.dynamic>)
: null,
androidDevicePolicyTracks:
json_.containsKey('androidDevicePolicyTracks')
? (json_['androidDevicePolicyTracks'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
appAutoUpdatePolicy: json_.containsKey('appAutoUpdatePolicy')
? json_['appAutoUpdatePolicy'] as core.String
: null,
applications: json_.containsKey('applications')
? (json_['applications'] as core.List)
.map((value) => ApplicationPolicy.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
autoDateAndTimeZone: json_.containsKey('autoDateAndTimeZone')
? json_['autoDateAndTimeZone'] as core.String
: null,
autoTimeRequired: json_.containsKey('autoTimeRequired')
? json_['autoTimeRequired'] as core.bool
: null,
blockApplicationsEnabled:
json_.containsKey('blockApplicationsEnabled')
? json_['blockApplicationsEnabled'] as core.bool
: null,
bluetoothConfigDisabled: json_.containsKey('bluetoothConfigDisabled')
? json_['bluetoothConfigDisabled'] as core.bool
: null,
bluetoothContactSharingDisabled:
json_.containsKey('bluetoothContactSharingDisabled')
? json_['bluetoothContactSharingDisabled'] as core.bool
: null,
bluetoothDisabled: json_.containsKey('bluetoothDisabled')
? json_['bluetoothDisabled'] as core.bool
: null,
cameraAccess: json_.containsKey('cameraAccess')
? json_['cameraAccess'] as core.String
: null,
cameraDisabled: json_.containsKey('cameraDisabled')
? json_['cameraDisabled'] as core.bool
: null,
cellBroadcastsConfigDisabled:
json_.containsKey('cellBroadcastsConfigDisabled')
? json_['cellBroadcastsConfigDisabled'] as core.bool
: null,
choosePrivateKeyRules: json_.containsKey('choosePrivateKeyRules')
? (json_['choosePrivateKeyRules'] as core.List)
.map((value) => ChoosePrivateKeyRule.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
complianceRules: json_.containsKey('complianceRules')
? (json_['complianceRules'] as core.List)
.map((value) => ComplianceRule.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
createWindowsDisabled: json_.containsKey('createWindowsDisabled')
? json_['createWindowsDisabled'] as core.bool
: null,
credentialProviderPolicyDefault:
json_.containsKey('credentialProviderPolicyDefault')
? json_['credentialProviderPolicyDefault'] as core.String
: null,
credentialsConfigDisabled:
json_.containsKey('credentialsConfigDisabled')
? json_['credentialsConfigDisabled'] as core.bool
: null,
crossProfilePolicies: json_.containsKey('crossProfilePolicies')
? CrossProfilePolicies.fromJson(json_['crossProfilePolicies']
as core.Map<core.String, core.dynamic>)
: null,
dataRoamingDisabled: json_.containsKey('dataRoamingDisabled')
? json_['dataRoamingDisabled'] as core.bool
: null,
debuggingFeaturesAllowed:
json_.containsKey('debuggingFeaturesAllowed')
? json_['debuggingFeaturesAllowed'] as core.bool
: null,
defaultPermissionPolicy: json_.containsKey('defaultPermissionPolicy')
? json_['defaultPermissionPolicy'] as core.String
: null,
deviceConnectivityManagement:
json_.containsKey('deviceConnectivityManagement')
? DeviceConnectivityManagement.fromJson(
json_['deviceConnectivityManagement']
as core.Map<core.String, core.dynamic>)
: null,
deviceOwnerLockScreenInfo: json_
.containsKey('deviceOwnerLockScreenInfo')
? UserFacingMessage.fromJson(json_['deviceOwnerLockScreenInfo']
as core.Map<core.String, core.dynamic>)
: null,
deviceRadioState: json_.containsKey('deviceRadioState')
? DeviceRadioState.fromJson(json_['deviceRadioState']
as core.Map<core.String, core.dynamic>)
: null,
encryptionPolicy: json_.containsKey('encryptionPolicy')
? json_['encryptionPolicy'] as core.String
: null,
ensureVerifyAppsEnabled: json_.containsKey('ensureVerifyAppsEnabled')
? json_['ensureVerifyAppsEnabled'] as core.bool
: null,
factoryResetDisabled: json_.containsKey('factoryResetDisabled')
? json_['factoryResetDisabled'] as core.bool
: null,
frpAdminEmails: json_.containsKey('frpAdminEmails')
? (json_['frpAdminEmails'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
funDisabled: json_.containsKey('funDisabled')
? json_['funDisabled'] as core.bool
: null,
installAppsDisabled: json_.containsKey('installAppsDisabled')
? json_['installAppsDisabled'] as core.bool
: null,
installUnknownSourcesAllowed:
json_.containsKey('installUnknownSourcesAllowed')
? json_['installUnknownSourcesAllowed'] as core.bool
: null,
keyguardDisabled: json_.containsKey('keyguardDisabled')
? json_['keyguardDisabled'] as core.bool
: null,
keyguardDisabledFeatures:
json_.containsKey('keyguardDisabledFeatures')
? (json_['keyguardDisabledFeatures'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
kioskCustomLauncherEnabled:
json_.containsKey('kioskCustomLauncherEnabled')
? json_['kioskCustomLauncherEnabled'] as core.bool
: null,
kioskCustomization: json_.containsKey('kioskCustomization')
? KioskCustomization.fromJson(json_['kioskCustomization']
as core.Map<core.String, core.dynamic>)
: null,
locationMode: json_.containsKey('locationMode')
? json_['locationMode'] as core.String
: null,
longSupportMessage: json_.containsKey('longSupportMessage')
? UserFacingMessage.fromJson(json_['longSupportMessage']
as core.Map<core.String, core.dynamic>)
: null,
maximumTimeToLock: json_.containsKey('maximumTimeToLock')
? json_['maximumTimeToLock'] as core.String
: null,
microphoneAccess: json_.containsKey('microphoneAccess')
? json_['microphoneAccess'] as core.String
: null,
minimumApiLevel: json_.containsKey('minimumApiLevel')
? json_['minimumApiLevel'] as core.int
: null,
mobileNetworksConfigDisabled:
json_.containsKey('mobileNetworksConfigDisabled')
? json_['mobileNetworksConfigDisabled'] as core.bool
: null,
modifyAccountsDisabled: json_.containsKey('modifyAccountsDisabled')
? json_['modifyAccountsDisabled'] as core.bool
: null,
mountPhysicalMediaDisabled:
json_.containsKey('mountPhysicalMediaDisabled')
? json_['mountPhysicalMediaDisabled'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
networkEscapeHatchEnabled:
json_.containsKey('networkEscapeHatchEnabled')
? json_['networkEscapeHatchEnabled'] as core.bool
: null,
networkResetDisabled: json_.containsKey('networkResetDisabled')
? json_['networkResetDisabled'] as core.bool
: null,
oncCertificateProviders: json_.containsKey('oncCertificateProviders')
? (json_['oncCertificateProviders'] as core.List)
.map((value) => OncCertificateProvider.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
openNetworkConfiguration:
json_.containsKey('openNetworkConfiguration')
? json_['openNetworkConfiguration']
as core.Map<core.String, core.dynamic>
: null,
outgoingBeamDisabled: json_.containsKey('outgoingBeamDisabled')
? json_['outgoingBeamDisabled'] as core.bool
: null,
outgoingCallsDisabled: json_.containsKey('outgoingCallsDisabled')
? json_['outgoingCallsDisabled'] as core.bool
: null,
passwordPolicies: json_.containsKey('passwordPolicies')
? (json_['passwordPolicies'] as core.List)
.map((value) => PasswordRequirements.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
passwordRequirements: json_.containsKey('passwordRequirements')
? PasswordRequirements.fromJson(json_['passwordRequirements']
as core.Map<core.String, core.dynamic>)
: null,
permissionGrants: json_.containsKey('permissionGrants')
? (json_['permissionGrants'] as core.List)
.map((value) => PermissionGrant.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
permittedAccessibilityServices: json_
.containsKey('permittedAccessibilityServices')
? PackageNameList.fromJson(json_['permittedAccessibilityServices']
as core.Map<core.String, core.dynamic>)
: null,
permittedInputMethods: json_.containsKey('permittedInputMethods')
? PackageNameList.fromJson(json_['permittedInputMethods']
as core.Map<core.String, core.dynamic>)
: null,
persistentPreferredActivities:
json_.containsKey('persistentPreferredActivities')
? (json_['persistentPreferredActivities'] as core.List)
.map((value) => PersistentPreferredActivity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
personalUsagePolicies: json_.containsKey('personalUsagePolicies')
? PersonalUsagePolicies.fromJson(json_['personalUsagePolicies']
as core.Map<core.String, core.dynamic>)
: null,
playStoreMode: json_.containsKey('playStoreMode')
? json_['playStoreMode'] as core.String
: null,
policyEnforcementRules: json_.containsKey('policyEnforcementRules')
? (json_['policyEnforcementRules'] as core.List)
.map((value) => PolicyEnforcementRule.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
preferentialNetworkService:
json_.containsKey('preferentialNetworkService')
? json_['preferentialNetworkService'] as core.String
: null,
printingPolicy: json_.containsKey('printingPolicy')
? json_['printingPolicy'] as core.String
: null,
privateKeySelectionEnabled:
json_.containsKey('privateKeySelectionEnabled')
? json_['privateKeySelectionEnabled'] as core.bool
: null,
recommendedGlobalProxy: json_.containsKey('recommendedGlobalProxy')
? ProxyInfo.fromJson(json_['recommendedGlobalProxy']
as core.Map<core.String, core.dynamic>)
: null,
removeUserDisabled: json_.containsKey('removeUserDisabled')
? json_['removeUserDisabled'] as core.bool
: null,
safeBootDisabled: json_.containsKey('safeBootDisabled')
? json_['safeBootDisabled'] as core.bool
: null,
screenCaptureDisabled: json_.containsKey('screenCaptureDisabled')
? json_['screenCaptureDisabled'] as core.bool
: null,
setUserIconDisabled: json_.containsKey('setUserIconDisabled')
? json_['setUserIconDisabled'] as core.bool
: null,
setWallpaperDisabled: json_.containsKey('setWallpaperDisabled')
? json_['setWallpaperDisabled'] as core.bool
: null,
setupActions: json_.containsKey('setupActions')
? (json_['setupActions'] as core.List)
.map((value) => SetupAction.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
shareLocationDisabled: json_.containsKey('shareLocationDisabled')
? json_['shareLocationDisabled'] as core.bool
: null,
shortSupportMessage: json_.containsKey('shortSupportMessage')
? UserFacingMessage.fromJson(json_['shortSupportMessage']
as core.Map<core.String, core.dynamic>)
: null,
skipFirstUseHintsEnabled:
json_.containsKey('skipFirstUseHintsEnabled')
? json_['skipFirstUseHintsEnabled'] as core.bool
: null,
smsDisabled: json_.containsKey('smsDisabled')
? json_['smsDisabled'] as core.bool
: null,
statusBarDisabled: json_.containsKey('statusBarDisabled')
? json_['statusBarDisabled'] as core.bool
: null,
statusReportingSettings: json_.containsKey('statusReportingSettings')
? StatusReportingSettings.fromJson(
json_['statusReportingSettings']
as core.Map<core.String, core.dynamic>)
: null,
stayOnPluggedModes: json_.containsKey('stayOnPluggedModes')
? (json_['stayOnPluggedModes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
systemUpdate: json_.containsKey('systemUpdate')
? SystemUpdate.fromJson(
json_['systemUpdate'] as core.Map<core.String, core.dynamic>)
: null,
tetheringConfigDisabled: json_.containsKey('tetheringConfigDisabled')
? json_['tetheringConfigDisabled'] as core.bool
: null,
uninstallAppsDisabled: json_.containsKey('uninstallAppsDisabled')
? json_['uninstallAppsDisabled'] as core.bool
: null,
unmuteMicrophoneDisabled:
json_.containsKey('unmuteMicrophoneDisabled')
? json_['unmuteMicrophoneDisabled'] as core.bool
: null,
usageLog: json_.containsKey('usageLog')
? UsageLog.fromJson(
json_['usageLog'] as core.Map<core.String, core.dynamic>)
: null,
usbFileTransferDisabled: json_.containsKey('usbFileTransferDisabled')
? json_['usbFileTransferDisabled'] as core.bool
: null,
usbMassStorageEnabled: json_.containsKey('usbMassStorageEnabled')
? json_['usbMassStorageEnabled'] as core.bool
: null,
version: json_.containsKey('version')
? json_['version'] as core.String
: null,
vpnConfigDisabled: json_.containsKey('vpnConfigDisabled')
? json_['vpnConfigDisabled'] as core.bool
: null,
wifiConfigDisabled: json_.containsKey('wifiConfigDisabled')
? json_['wifiConfigDisabled'] as core.bool
: null,
wifiConfigsLockdownEnabled:
json_.containsKey('wifiConfigsLockdownEnabled')
? json_['wifiConfigsLockdownEnabled'] as core.bool
: null,
);