toActionExecutionStatus method

ActionExecutionStatus toActionExecutionStatus()

Implementation

ActionExecutionStatus toActionExecutionStatus() {
  switch (this) {
    case 'InProgress':
      return ActionExecutionStatus.inProgress;
    case 'Abandoned':
      return ActionExecutionStatus.abandoned;
    case 'Succeeded':
      return ActionExecutionStatus.succeeded;
    case 'Failed':
      return ActionExecutionStatus.failed;
  }
  throw Exception('$this is not known in enum ActionExecutionStatus');
}