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, item) => core.MapEntry(
key,
item 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,
);