PipelineContext.fromJson constructor

PipelineContext.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PipelineContext.fromJson(Map<String, dynamic> json) {
  return PipelineContext(
    action: json['action'] != null
        ? ActionContext.fromJson(json['action'] as Map<String, dynamic>)
        : null,
    pipelineArn: json['pipelineArn'] as String?,
    pipelineExecutionId: json['pipelineExecutionId'] as String?,
    pipelineName: json['pipelineName'] as String?,
    stage: json['stage'] != null
        ? StageContext.fromJson(json['stage'] as Map<String, dynamic>)
        : null,
  );
}