Settings.fromJson constructor
Settings.fromJson(
- Map json_
Implementation
Settings.fromJson(core.Map json_)
: this(
activationPolicy: json_.containsKey('activationPolicy')
? json_['activationPolicy'] as core.String
: null,
activeDirectoryConfig: json_.containsKey('activeDirectoryConfig')
? SqlActiveDirectoryConfig.fromJson(json_['activeDirectoryConfig']
as core.Map<core.String, core.dynamic>)
: null,
advancedMachineFeatures: json_.containsKey('advancedMachineFeatures')
? AdvancedMachineFeatures.fromJson(
json_['advancedMachineFeatures']
as core.Map<core.String, core.dynamic>)
: null,
authorizedGaeApplications:
json_.containsKey('authorizedGaeApplications')
? (json_['authorizedGaeApplications'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
availabilityType: json_.containsKey('availabilityType')
? json_['availabilityType'] as core.String
: null,
backupConfiguration: json_.containsKey('backupConfiguration')
? BackupConfiguration.fromJson(json_['backupConfiguration']
as core.Map<core.String, core.dynamic>)
: null,
collation: json_.containsKey('collation')
? json_['collation'] as core.String
: null,
connectorEnforcement: json_.containsKey('connectorEnforcement')
? json_['connectorEnforcement'] as core.String
: null,
crashSafeReplicationEnabled:
json_.containsKey('crashSafeReplicationEnabled')
? json_['crashSafeReplicationEnabled'] as core.bool
: null,
dataCacheConfig: json_.containsKey('dataCacheConfig')
? DataCacheConfig.fromJson(json_['dataCacheConfig']
as core.Map<core.String, core.dynamic>)
: null,
dataDiskSizeGb: json_.containsKey('dataDiskSizeGb')
? json_['dataDiskSizeGb'] as core.String
: null,
dataDiskType: json_.containsKey('dataDiskType')
? json_['dataDiskType'] as core.String
: null,
databaseFlags: json_.containsKey('databaseFlags')
? (json_['databaseFlags'] as core.List)
.map((value) => DatabaseFlags.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
databaseReplicationEnabled:
json_.containsKey('databaseReplicationEnabled')
? json_['databaseReplicationEnabled'] as core.bool
: null,
deletionProtectionEnabled:
json_.containsKey('deletionProtectionEnabled')
? json_['deletionProtectionEnabled'] as core.bool
: null,
denyMaintenancePeriods: json_.containsKey('denyMaintenancePeriods')
? (json_['denyMaintenancePeriods'] as core.List)
.map((value) => DenyMaintenancePeriod.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
edition: json_.containsKey('edition')
? json_['edition'] as core.String
: null,
insightsConfig: json_.containsKey('insightsConfig')
? InsightsConfig.fromJson(json_['insightsConfig']
as core.Map<core.String, core.dynamic>)
: null,
ipConfiguration: json_.containsKey('ipConfiguration')
? IpConfiguration.fromJson(json_['ipConfiguration']
as core.Map<core.String, core.dynamic>)
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
locationPreference: json_.containsKey('locationPreference')
? LocationPreference.fromJson(json_['locationPreference']
as core.Map<core.String, core.dynamic>)
: null,
maintenanceWindow: json_.containsKey('maintenanceWindow')
? MaintenanceWindow.fromJson(json_['maintenanceWindow']
as core.Map<core.String, core.dynamic>)
: null,
passwordValidationPolicy:
json_.containsKey('passwordValidationPolicy')
? PasswordValidationPolicy.fromJson(
json_['passwordValidationPolicy']
as core.Map<core.String, core.dynamic>)
: null,
pricingPlan: json_.containsKey('pricingPlan')
? json_['pricingPlan'] as core.String
: null,
replicationType: json_.containsKey('replicationType')
? json_['replicationType'] as core.String
: null,
settingsVersion: json_.containsKey('settingsVersion')
? json_['settingsVersion'] as core.String
: null,
sqlServerAuditConfig: json_.containsKey('sqlServerAuditConfig')
? SqlServerAuditConfig.fromJson(json_['sqlServerAuditConfig']
as core.Map<core.String, core.dynamic>)
: null,
storageAutoResize: json_.containsKey('storageAutoResize')
? json_['storageAutoResize'] as core.bool
: null,
storageAutoResizeLimit: json_.containsKey('storageAutoResizeLimit')
? json_['storageAutoResizeLimit'] as core.String
: null,
tier: json_.containsKey('tier') ? json_['tier'] as core.String : null,
timeZone: json_.containsKey('timeZone')
? json_['timeZone'] as core.String
: null,
userLabels: json_.containsKey('userLabels')
? (json_['userLabels'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
);