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