toActionStatus method

ActionStatus toActionStatus()

Implementation

ActionStatus toActionStatus() {
  switch (this) {
    case 'Unknown':
      return ActionStatus.unknown;
    case 'InProgress':
      return ActionStatus.inProgress;
    case 'Completed':
      return ActionStatus.completed;
    case 'Failed':
      return ActionStatus.failed;
    case 'Stopping':
      return ActionStatus.stopping;
    case 'Stopped':
      return ActionStatus.stopped;
  }
  throw Exception('$this is not known in enum ActionStatus');
}