ConnectionProfile.fromJson constructor
ConnectionProfile.fromJson(
- Map json_
Implementation
ConnectionProfile.fromJson(core.Map json_)
: this(
alloydb: json_.containsKey('alloydb')
? AlloyDbConnectionProfile.fromJson(
json_['alloydb'] as core.Map<core.String, core.dynamic>)
: null,
cloudsql: json_.containsKey('cloudsql')
? CloudSqlConnectionProfile.fromJson(
json_['cloudsql'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
error: json_.containsKey('error')
? Status.fromJson(
json_['error'] as core.Map<core.String, core.dynamic>)
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
mysql: json_.containsKey('mysql')
? MySqlConnectionProfile.fromJson(
json_['mysql'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
oracle: json_.containsKey('oracle')
? OracleConnectionProfile.fromJson(
json_['oracle'] as core.Map<core.String, core.dynamic>)
: null,
postgresql: json_.containsKey('postgresql')
? PostgreSqlConnectionProfile.fromJson(
json_['postgresql'] as core.Map<core.String, core.dynamic>)
: null,
provider: json_.containsKey('provider')
? json_['provider'] as core.String
: null,
sqlserver: json_.containsKey('sqlserver')
? SqlServerConnectionProfile.fromJson(
json_['sqlserver'] as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);