ConnectorVersion.fromJson constructor
ConnectorVersion.fromJson(
- Map json_
Implementation
ConnectorVersion.fromJson(core.Map json_)
: this(
authConfigTemplates: json_.containsKey('authConfigTemplates')
? (json_['authConfigTemplates'] as core.List)
.map((value) => AuthConfigTemplate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
authOverrideEnabled: json_.containsKey('authOverrideEnabled')
? json_['authOverrideEnabled'] as core.bool
: null,
configVariableTemplates: json_.containsKey('configVariableTemplates')
? (json_['configVariableTemplates'] as core.List)
.map((value) => ConfigVariableTemplate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
connectorInfraConfig: json_.containsKey('connectorInfraConfig')
? ConnectorInfraConfig.fromJson(json_['connectorInfraConfig']
as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
destinationConfigTemplates:
json_.containsKey('destinationConfigTemplates')
? (json_['destinationConfigTemplates'] as core.List)
.map((value) => DestinationConfigTemplate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
egressControlConfig: json_.containsKey('egressControlConfig')
? EgressControlConfig.fromJson(json_['egressControlConfig']
as core.Map<core.String, core.dynamic>)
: null,
eventingConfigTemplate: json_.containsKey('eventingConfigTemplate')
? EventingConfigTemplate.fromJson(json_['eventingConfigTemplate']
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,
launchStage: json_.containsKey('launchStage')
? json_['launchStage'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
releaseVersion: json_.containsKey('releaseVersion')
? json_['releaseVersion'] as core.String
: null,
roleGrant: json_.containsKey('roleGrant')
? RoleGrant.fromJson(
json_['roleGrant'] as core.Map<core.String, core.dynamic>)
: null,
roleGrants: json_.containsKey('roleGrants')
? (json_['roleGrants'] as core.List)
.map((value) => RoleGrant.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
schemaRefreshConfig: json_.containsKey('schemaRefreshConfig')
? SchemaRefreshConfig.fromJson(json_['schemaRefreshConfig']
as core.Map<core.String, core.dynamic>)
: null,
sslConfigTemplate: json_.containsKey('sslConfigTemplate')
? SslConfigTemplate.fromJson(json_['sslConfigTemplate']
as core.Map<core.String, core.dynamic>)
: null,
supportedRuntimeFeatures:
json_.containsKey('supportedRuntimeFeatures')
? SupportedRuntimeFeatures.fromJson(
json_['supportedRuntimeFeatures']
as core.Map<core.String, core.dynamic>)
: null,
unsupportedConnectionTypes:
json_.containsKey('unsupportedConnectionTypes')
? (json_['unsupportedConnectionTypes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);