toExecutionType method

ExecutionType toExecutionType()

Implementation

ExecutionType toExecutionType() {
  switch (this) {
    case 'APPROVE_BUDGET_ACTION':
      return ExecutionType.approveBudgetAction;
    case 'RETRY_BUDGET_ACTION':
      return ExecutionType.retryBudgetAction;
    case 'REVERSE_BUDGET_ACTION':
      return ExecutionType.reverseBudgetAction;
    case 'RESET_BUDGET_ACTION':
      return ExecutionType.resetBudgetAction;
  }
  throw Exception('$this is not known in enum ExecutionType');
}