Build.fromJson constructor
Build.fromJson(
- Map json_
Implementation
Build.fromJson(core.Map json_)
: this(
approval: json_.containsKey('approval')
? BuildApproval.fromJson(
json_['approval'] as core.Map<core.String, core.dynamic>)
: null,
artifacts: json_.containsKey('artifacts')
? Artifacts.fromJson(
json_['artifacts'] as core.Map<core.String, core.dynamic>)
: null,
availableSecrets: json_.containsKey('availableSecrets')
? Secrets.fromJson(json_['availableSecrets']
as core.Map<core.String, core.dynamic>)
: null,
buildTriggerId: json_.containsKey('buildTriggerId')
? json_['buildTriggerId'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
failureInfo: json_.containsKey('failureInfo')
? FailureInfo.fromJson(
json_['failureInfo'] as core.Map<core.String, core.dynamic>)
: null,
finishTime: json_.containsKey('finishTime')
? json_['finishTime'] as core.String
: null,
gitConfig: json_.containsKey('gitConfig')
? GitConfig.fromJson(
json_['gitConfig'] as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
images: json_.containsKey('images')
? (json_['images'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
logUrl: json_.containsKey('logUrl')
? json_['logUrl'] as core.String
: null,
logsBucket: json_.containsKey('logsBucket')
? json_['logsBucket'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
options: json_.containsKey('options')
? BuildOptions.fromJson(
json_['options'] as core.Map<core.String, core.dynamic>)
: null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
queueTtl: json_.containsKey('queueTtl')
? json_['queueTtl'] as core.String
: null,
results: json_.containsKey('results')
? Results.fromJson(
json_['results'] as core.Map<core.String, core.dynamic>)
: null,
secrets: json_.containsKey('secrets')
? (json_['secrets'] as core.List)
.map((value) => Secret.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
source: json_.containsKey('source')
? Source.fromJson(
json_['source'] as core.Map<core.String, core.dynamic>)
: null,
sourceProvenance: json_.containsKey('sourceProvenance')
? SourceProvenance.fromJson(json_['sourceProvenance']
as core.Map<core.String, core.dynamic>)
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
statusDetail: json_.containsKey('statusDetail')
? json_['statusDetail'] as core.String
: null,
steps: json_.containsKey('steps')
? (json_['steps'] as core.List)
.map((value) => BuildStep.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: 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,
timeout: json_.containsKey('timeout')
? json_['timeout'] as core.String
: null,
timing: json_.containsKey('timing')
? (json_['timing'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
TimeSpan.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
warnings: json_.containsKey('warnings')
? (json_['warnings'] as core.List)
.map((value) => Warning.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);