BuildProvenance.fromJson constructor
BuildProvenance.fromJson(
- Map json_
Implementation
BuildProvenance.fromJson(core.Map json_)
: this(
buildOptions: json_.containsKey('buildOptions')
? (json_['buildOptions'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
builderVersion: json_.containsKey('builderVersion')
? json_['builderVersion'] as core.String
: null,
builtArtifacts: json_.containsKey('builtArtifacts')
? (json_['builtArtifacts'] as core.List)
.map((value) => Artifact.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
commands: json_.containsKey('commands')
? (json_['commands'] as core.List)
.map((value) => Command.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
creator: json_.containsKey('creator')
? json_['creator'] as core.String
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
logsUri: json_.containsKey('logsUri')
? json_['logsUri'] as core.String
: null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
sourceProvenance: json_.containsKey('sourceProvenance')
? Source.fromJson(json_['sourceProvenance']
as core.Map<core.String, core.dynamic>)
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
triggerId: json_.containsKey('triggerId')
? json_['triggerId'] as core.String
: null,
);