toPipelineExecutionStartCondition method

PipelineExecutionStartCondition toPipelineExecutionStartCondition()

Implementation

PipelineExecutionStartCondition toPipelineExecutionStartCondition() {
  switch (this) {
    case 'EXPRESSION_MATCH_ONLY':
      return PipelineExecutionStartCondition.expressionMatchOnly;
    case 'EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE':
      return PipelineExecutionStartCondition
          .expressionMatchAndDependencyUpdatesAvailable;
  }
  throw Exception(
      '$this is not known in enum PipelineExecutionStartCondition');
}