toCompleteWorkflowExecutionFailedCause method

CompleteWorkflowExecutionFailedCause toCompleteWorkflowExecutionFailedCause()

Implementation

CompleteWorkflowExecutionFailedCause
    toCompleteWorkflowExecutionFailedCause() {
  switch (this) {
    case 'UNHANDLED_DECISION':
      return CompleteWorkflowExecutionFailedCause.unhandledDecision;
    case 'OPERATION_NOT_PERMITTED':
      return CompleteWorkflowExecutionFailedCause.operationNotPermitted;
  }
  throw Exception(
      '$this is not known in enum CompleteWorkflowExecutionFailedCause');
}