toDecisionType method

DecisionType toDecisionType()

Implementation

DecisionType toDecisionType() {
  switch (this) {
    case 'ScheduleActivityTask':
      return DecisionType.scheduleActivityTask;
    case 'RequestCancelActivityTask':
      return DecisionType.requestCancelActivityTask;
    case 'CompleteWorkflowExecution':
      return DecisionType.completeWorkflowExecution;
    case 'FailWorkflowExecution':
      return DecisionType.failWorkflowExecution;
    case 'CancelWorkflowExecution':
      return DecisionType.cancelWorkflowExecution;
    case 'ContinueAsNewWorkflowExecution':
      return DecisionType.continueAsNewWorkflowExecution;
    case 'RecordMarker':
      return DecisionType.recordMarker;
    case 'StartTimer':
      return DecisionType.startTimer;
    case 'CancelTimer':
      return DecisionType.cancelTimer;
    case 'SignalExternalWorkflowExecution':
      return DecisionType.signalExternalWorkflowExecution;
    case 'RequestCancelExternalWorkflowExecution':
      return DecisionType.requestCancelExternalWorkflowExecution;
    case 'StartChildWorkflowExecution':
      return DecisionType.startChildWorkflowExecution;
    case 'ScheduleLambdaFunction':
      return DecisionType.scheduleLambdaFunction;
  }
  throw Exception('$this is not known in enum DecisionType');
}