toEventType method

EventType toEventType()

Implementation

EventType toEventType() {
  switch (this) {
    case 'WorkflowExecutionStarted':
      return EventType.workflowExecutionStarted;
    case 'WorkflowExecutionCancelRequested':
      return EventType.workflowExecutionCancelRequested;
    case 'WorkflowExecutionCompleted':
      return EventType.workflowExecutionCompleted;
    case 'CompleteWorkflowExecutionFailed':
      return EventType.completeWorkflowExecutionFailed;
    case 'WorkflowExecutionFailed':
      return EventType.workflowExecutionFailed;
    case 'FailWorkflowExecutionFailed':
      return EventType.failWorkflowExecutionFailed;
    case 'WorkflowExecutionTimedOut':
      return EventType.workflowExecutionTimedOut;
    case 'WorkflowExecutionCanceled':
      return EventType.workflowExecutionCanceled;
    case 'CancelWorkflowExecutionFailed':
      return EventType.cancelWorkflowExecutionFailed;
    case 'WorkflowExecutionContinuedAsNew':
      return EventType.workflowExecutionContinuedAsNew;
    case 'ContinueAsNewWorkflowExecutionFailed':
      return EventType.continueAsNewWorkflowExecutionFailed;
    case 'WorkflowExecutionTerminated':
      return EventType.workflowExecutionTerminated;
    case 'DecisionTaskScheduled':
      return EventType.decisionTaskScheduled;
    case 'DecisionTaskStarted':
      return EventType.decisionTaskStarted;
    case 'DecisionTaskCompleted':
      return EventType.decisionTaskCompleted;
    case 'DecisionTaskTimedOut':
      return EventType.decisionTaskTimedOut;
    case 'ActivityTaskScheduled':
      return EventType.activityTaskScheduled;
    case 'ScheduleActivityTaskFailed':
      return EventType.scheduleActivityTaskFailed;
    case 'ActivityTaskStarted':
      return EventType.activityTaskStarted;
    case 'ActivityTaskCompleted':
      return EventType.activityTaskCompleted;
    case 'ActivityTaskFailed':
      return EventType.activityTaskFailed;
    case 'ActivityTaskTimedOut':
      return EventType.activityTaskTimedOut;
    case 'ActivityTaskCanceled':
      return EventType.activityTaskCanceled;
    case 'ActivityTaskCancelRequested':
      return EventType.activityTaskCancelRequested;
    case 'RequestCancelActivityTaskFailed':
      return EventType.requestCancelActivityTaskFailed;
    case 'WorkflowExecutionSignaled':
      return EventType.workflowExecutionSignaled;
    case 'MarkerRecorded':
      return EventType.markerRecorded;
    case 'RecordMarkerFailed':
      return EventType.recordMarkerFailed;
    case 'TimerStarted':
      return EventType.timerStarted;
    case 'StartTimerFailed':
      return EventType.startTimerFailed;
    case 'TimerFired':
      return EventType.timerFired;
    case 'TimerCanceled':
      return EventType.timerCanceled;
    case 'CancelTimerFailed':
      return EventType.cancelTimerFailed;
    case 'StartChildWorkflowExecutionInitiated':
      return EventType.startChildWorkflowExecutionInitiated;
    case 'StartChildWorkflowExecutionFailed':
      return EventType.startChildWorkflowExecutionFailed;
    case 'ChildWorkflowExecutionStarted':
      return EventType.childWorkflowExecutionStarted;
    case 'ChildWorkflowExecutionCompleted':
      return EventType.childWorkflowExecutionCompleted;
    case 'ChildWorkflowExecutionFailed':
      return EventType.childWorkflowExecutionFailed;
    case 'ChildWorkflowExecutionTimedOut':
      return EventType.childWorkflowExecutionTimedOut;
    case 'ChildWorkflowExecutionCanceled':
      return EventType.childWorkflowExecutionCanceled;
    case 'ChildWorkflowExecutionTerminated':
      return EventType.childWorkflowExecutionTerminated;
    case 'SignalExternalWorkflowExecutionInitiated':
      return EventType.signalExternalWorkflowExecutionInitiated;
    case 'SignalExternalWorkflowExecutionFailed':
      return EventType.signalExternalWorkflowExecutionFailed;
    case 'ExternalWorkflowExecutionSignaled':
      return EventType.externalWorkflowExecutionSignaled;
    case 'RequestCancelExternalWorkflowExecutionInitiated':
      return EventType.requestCancelExternalWorkflowExecutionInitiated;
    case 'RequestCancelExternalWorkflowExecutionFailed':
      return EventType.requestCancelExternalWorkflowExecutionFailed;
    case 'ExternalWorkflowExecutionCancelRequested':
      return EventType.externalWorkflowExecutionCancelRequested;
    case 'LambdaFunctionScheduled':
      return EventType.lambdaFunctionScheduled;
    case 'LambdaFunctionStarted':
      return EventType.lambdaFunctionStarted;
    case 'LambdaFunctionCompleted':
      return EventType.lambdaFunctionCompleted;
    case 'LambdaFunctionFailed':
      return EventType.lambdaFunctionFailed;
    case 'LambdaFunctionTimedOut':
      return EventType.lambdaFunctionTimedOut;
    case 'ScheduleLambdaFunctionFailed':
      return EventType.scheduleLambdaFunctionFailed;
    case 'StartLambdaFunctionFailed':
      return EventType.startLambdaFunctionFailed;
  }
  throw Exception('$this is not known in enum EventType');
}