PipelineExecution.fromJson constructor
PipelineExecution.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PipelineExecution.fromJson(Map<String, dynamic> json) {
return PipelineExecution(
artifactRevisions: (json['artifactRevisions'] as List?)
?.whereNotNull()
.map((e) => ArtifactRevision.fromJson(e as Map<String, dynamic>))
.toList(),
pipelineExecutionId: json['pipelineExecutionId'] as String?,
pipelineName: json['pipelineName'] as String?,
pipelineVersion: json['pipelineVersion'] as int?,
status: (json['status'] as String?)?.toPipelineExecutionStatus(),
);
}