Connection.fromJson constructor
Connection.fromJson(
- Map json_
Implementation
Connection.fromJson(core.Map json_)
: this(
authConfig: json_.containsKey('authConfig')
? AuthConfig.fromJson(
json_['authConfig'] as core.Map<core.String, core.dynamic>)
: null,
billingConfig: json_.containsKey('billingConfig')
? BillingConfig.fromJson(
json_['billingConfig'] as core.Map<core.String, core.dynamic>)
: null,
configVariables: json_.containsKey('configVariables')
? (json_['configVariables'] as core.List)
.map((value) => ConfigVariable.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
connectionRevision: json_.containsKey('connectionRevision')
? json_['connectionRevision'] as core.String
: null,
connectorVersion: json_.containsKey('connectorVersion')
? json_['connectorVersion'] as core.String
: null,
connectorVersionInfraConfig:
json_.containsKey('connectorVersionInfraConfig')
? ConnectorVersionInfraConfig.fromJson(
json_['connectorVersionInfraConfig']
as core.Map<core.String, core.dynamic>)
: null,
connectorVersionLaunchStage:
json_.containsKey('connectorVersionLaunchStage')
? json_['connectorVersionLaunchStage'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
destinationConfigs: json_.containsKey('destinationConfigs')
? (json_['destinationConfigs'] as core.List)
.map((value) => DestinationConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
envoyImageLocation: json_.containsKey('envoyImageLocation')
? json_['envoyImageLocation'] as core.String
: null,
eventingConfig: json_.containsKey('eventingConfig')
? EventingConfig.fromJson(json_['eventingConfig']
as core.Map<core.String, core.dynamic>)
: null,
eventingEnablementType: json_.containsKey('eventingEnablementType')
? json_['eventingEnablementType'] as core.String
: null,
eventingRuntimeData: json_.containsKey('eventingRuntimeData')
? EventingRuntimeData.fromJson(json_['eventingRuntimeData']
as core.Map<core.String, core.dynamic>)
: null,
imageLocation: json_.containsKey('imageLocation')
? json_['imageLocation'] as core.String
: null,
isTrustedTester: json_.containsKey('isTrustedTester')
? json_['isTrustedTester'] as core.bool
: 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,
lockConfig: json_.containsKey('lockConfig')
? LockConfig.fromJson(
json_['lockConfig'] as core.Map<core.String, core.dynamic>)
: null,
logConfig: json_.containsKey('logConfig')
? ConnectorsLogConfig.fromJson(
json_['logConfig'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nodeConfig: json_.containsKey('nodeConfig')
? NodeConfig.fromJson(
json_['nodeConfig'] as core.Map<core.String, core.dynamic>)
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
serviceDirectory: json_.containsKey('serviceDirectory')
? json_['serviceDirectory'] as core.String
: null,
sslConfig: json_.containsKey('sslConfig')
? SslConfig.fromJson(
json_['sslConfig'] as core.Map<core.String, core.dynamic>)
: null,
status: json_.containsKey('status')
? ConnectionStatus.fromJson(
json_['status'] as core.Map<core.String, core.dynamic>)
: null,
subscriptionType: json_.containsKey('subscriptionType')
? json_['subscriptionType'] as core.String
: null,
suspended: json_.containsKey('suspended')
? json_['suspended'] as core.bool
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);