toFailWorkflowExecutionFailedCause method

FailWorkflowExecutionFailedCause toFailWorkflowExecutionFailedCause()

Implementation

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