BuildTrigger.fromJson constructor
BuildTrigger.fromJson(
- Map json_
Implementation
BuildTrigger.fromJson(core.Map json_)
: this(
approvalConfig: json_.containsKey('approvalConfig')
? ApprovalConfig.fromJson(json_['approvalConfig']
as core.Map<core.String, core.dynamic>)
: null,
autodetect: json_.containsKey('autodetect')
? json_['autodetect'] as core.bool
: null,
bitbucketServerTriggerConfig:
json_.containsKey('bitbucketServerTriggerConfig')
? BitbucketServerTriggerConfig.fromJson(
json_['bitbucketServerTriggerConfig']
as core.Map<core.String, core.dynamic>)
: null,
build: json_.containsKey('build')
? Build.fromJson(
json_['build'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
disabled: json_.containsKey('disabled')
? json_['disabled'] as core.bool
: null,
eventType: json_.containsKey('eventType')
? json_['eventType'] as core.String
: null,
filename: json_.containsKey('filename')
? json_['filename'] as core.String
: null,
filter: json_.containsKey('filter')
? json_['filter'] as core.String
: null,
gitFileSource: json_.containsKey('gitFileSource')
? GitFileSource.fromJson(
json_['gitFileSource'] as core.Map<core.String, core.dynamic>)
: null,
github: json_.containsKey('github')
? GitHubEventsConfig.fromJson(
json_['github'] as core.Map<core.String, core.dynamic>)
: null,
gitlabEnterpriseEventsConfig:
json_.containsKey('gitlabEnterpriseEventsConfig')
? GitLabEventsConfig.fromJson(
json_['gitlabEnterpriseEventsConfig']
as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
ignoredFiles: json_.containsKey('ignoredFiles')
? (json_['ignoredFiles'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
includeBuildLogs: json_.containsKey('includeBuildLogs')
? json_['includeBuildLogs'] as core.String
: null,
includedFiles: json_.containsKey('includedFiles')
? (json_['includedFiles'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
pubsubConfig: json_.containsKey('pubsubConfig')
? PubsubConfig.fromJson(
json_['pubsubConfig'] as core.Map<core.String, core.dynamic>)
: null,
repositoryEventConfig: json_.containsKey('repositoryEventConfig')
? RepositoryEventConfig.fromJson(json_['repositoryEventConfig']
as core.Map<core.String, core.dynamic>)
: null,
resourceName: json_.containsKey('resourceName')
? json_['resourceName'] as core.String
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
sourceToBuild: json_.containsKey('sourceToBuild')
? GitRepoSource.fromJson(
json_['sourceToBuild'] as core.Map<core.String, core.dynamic>)
: null,
substitutions: json_.containsKey('substitutions')
? (json_['substitutions'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
tags: json_.containsKey('tags')
? (json_['tags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
triggerTemplate: json_.containsKey('triggerTemplate')
? RepoSource.fromJson(json_['triggerTemplate']
as core.Map<core.String, core.dynamic>)
: null,
webhookConfig: json_.containsKey('webhookConfig')
? WebhookConfig.fromJson(
json_['webhookConfig'] as core.Map<core.String, core.dynamic>)
: null,
);