PipelineExecution.fromJson constructor
PipelineExecution.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PipelineExecution.fromJson(Map<String, dynamic> json) {
return PipelineExecution(
createdBy: json['CreatedBy'] != null
? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
: null,
creationTime: timeStampFromJson(json['CreationTime']),
lastModifiedBy: json['LastModifiedBy'] != null
? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
: null,
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
pipelineArn: json['PipelineArn'] as String?,
pipelineExecutionArn: json['PipelineExecutionArn'] as String?,
pipelineExecutionDescription:
json['PipelineExecutionDescription'] as String?,
pipelineExecutionDisplayName:
json['PipelineExecutionDisplayName'] as String?,
pipelineExecutionStatus: (json['PipelineExecutionStatus'] as String?)
?.toPipelineExecutionStatus(),
pipelineParameters: (json['PipelineParameters'] as List?)
?.whereNotNull()
.map((e) => Parameter.fromJson(e as Map<String, dynamic>))
.toList(),
);
}