DatabaseInstance.fromJson constructor
DatabaseInstance.fromJson(
- Map json_
Implementation
DatabaseInstance.fromJson(core.Map json_)
: this(
availableMaintenanceVersions:
json_.containsKey('availableMaintenanceVersions')
? (json_['availableMaintenanceVersions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
backendType: json_.containsKey('backendType')
? json_['backendType'] as core.String
: null,
connectionName: json_.containsKey('connectionName')
? json_['connectionName'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
currentDiskSize: json_.containsKey('currentDiskSize')
? json_['currentDiskSize'] as core.String
: null,
databaseInstalledVersion:
json_.containsKey('databaseInstalledVersion')
? json_['databaseInstalledVersion'] as core.String
: null,
databaseVersion: json_.containsKey('databaseVersion')
? json_['databaseVersion'] as core.String
: null,
diskEncryptionConfiguration:
json_.containsKey('diskEncryptionConfiguration')
? DiskEncryptionConfiguration.fromJson(
json_['diskEncryptionConfiguration']
as core.Map<core.String, core.dynamic>)
: null,
diskEncryptionStatus: json_.containsKey('diskEncryptionStatus')
? DiskEncryptionStatus.fromJson(json_['diskEncryptionStatus']
as core.Map<core.String, core.dynamic>)
: null,
dnsName: json_.containsKey('dnsName')
? json_['dnsName'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
failoverReplica: json_.containsKey('failoverReplica')
? DatabaseInstanceFailoverReplica.fromJson(
json_['failoverReplica']
as core.Map<core.String, core.dynamic>)
: null,
gceZone: json_.containsKey('gceZone')
? json_['gceZone'] as core.String
: null,
instanceType: json_.containsKey('instanceType')
? json_['instanceType'] as core.String
: null,
ipAddresses: json_.containsKey('ipAddresses')
? (json_['ipAddresses'] as core.List)
.map((value) => IpMapping.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
ipv6Address: json_.containsKey('ipv6Address')
? json_['ipv6Address'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
maintenanceVersion: json_.containsKey('maintenanceVersion')
? json_['maintenanceVersion'] as core.String
: null,
masterInstanceName: json_.containsKey('masterInstanceName')
? json_['masterInstanceName'] as core.String
: null,
maxDiskSize: json_.containsKey('maxDiskSize')
? json_['maxDiskSize'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
onPremisesConfiguration: json_.containsKey('onPremisesConfiguration')
? OnPremisesConfiguration.fromJson(
json_['onPremisesConfiguration']
as core.Map<core.String, core.dynamic>)
: null,
outOfDiskReport: json_.containsKey('outOfDiskReport')
? SqlOutOfDiskReport.fromJson(json_['outOfDiskReport']
as core.Map<core.String, core.dynamic>)
: null,
primaryDnsName: json_.containsKey('primaryDnsName')
? json_['primaryDnsName'] as core.String
: null,
project: json_.containsKey('project')
? json_['project'] as core.String
: null,
pscServiceAttachmentLink:
json_.containsKey('pscServiceAttachmentLink')
? json_['pscServiceAttachmentLink'] as core.String
: null,
region: json_.containsKey('region')
? json_['region'] as core.String
: null,
replicaConfiguration: json_.containsKey('replicaConfiguration')
? ReplicaConfiguration.fromJson(json_['replicaConfiguration']
as core.Map<core.String, core.dynamic>)
: null,
replicaNames: json_.containsKey('replicaNames')
? (json_['replicaNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
rootPassword: json_.containsKey('rootPassword')
? json_['rootPassword'] as core.String
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
scheduledMaintenance: json_.containsKey('scheduledMaintenance')
? SqlScheduledMaintenance.fromJson(json_['scheduledMaintenance']
as core.Map<core.String, core.dynamic>)
: null,
secondaryGceZone: json_.containsKey('secondaryGceZone')
? json_['secondaryGceZone'] as core.String
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
serverCaCert: json_.containsKey('serverCaCert')
? SslCert.fromJson(
json_['serverCaCert'] as core.Map<core.String, core.dynamic>)
: null,
serviceAccountEmailAddress:
json_.containsKey('serviceAccountEmailAddress')
? json_['serviceAccountEmailAddress'] as core.String
: null,
settings: json_.containsKey('settings')
? Settings.fromJson(
json_['settings'] as core.Map<core.String, core.dynamic>)
: null,
sqlNetworkArchitecture: json_.containsKey('sqlNetworkArchitecture')
? json_['sqlNetworkArchitecture'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
suspensionReason: json_.containsKey('suspensionReason')
? (json_['suspensionReason'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
writeEndpoint: json_.containsKey('writeEndpoint')
? json_['writeEndpoint'] as core.String
: null,
);