CloudSqlSettings.fromJson constructor
CloudSqlSettings.fromJson(
- Map json_
Implementation
CloudSqlSettings.fromJson(core.Map json_)
: this(
activationPolicy: json_.containsKey('activationPolicy')
? json_['activationPolicy'] as core.String
: null,
autoStorageIncrease: json_.containsKey('autoStorageIncrease')
? json_['autoStorageIncrease'] as core.bool
: null,
availabilityType: json_.containsKey('availabilityType')
? json_['availabilityType'] as core.String
: null,
cmekKeyName: json_.containsKey('cmekKeyName')
? json_['cmekKeyName'] as core.String
: null,
collation: json_.containsKey('collation')
? json_['collation'] as core.String
: 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.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
databaseVersion: json_.containsKey('databaseVersion')
? json_['databaseVersion'] as core.String
: null,
edition: json_.containsKey('edition')
? json_['edition'] as core.String
: null,
ipConfig: json_.containsKey('ipConfig')
? SqlIpConfig.fromJson(
json_['ipConfig'] as core.Map<core.String, core.dynamic>)
: null,
rootPassword: json_.containsKey('rootPassword')
? json_['rootPassword'] as core.String
: null,
rootPasswordSet: json_.containsKey('rootPasswordSet')
? json_['rootPasswordSet'] as core.bool
: null,
secondaryZone: json_.containsKey('secondaryZone')
? json_['secondaryZone'] as core.String
: null,
sourceId: json_.containsKey('sourceId')
? json_['sourceId'] as core.String
: null,
storageAutoResizeLimit: json_.containsKey('storageAutoResizeLimit')
? json_['storageAutoResizeLimit'] as core.String
: null,
tier: json_.containsKey('tier') ? json_['tier'] 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,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);