toDeletionTaskStatusType method

DeletionTaskStatusType toDeletionTaskStatusType()

Implementation

DeletionTaskStatusType toDeletionTaskStatusType() {
  switch (this) {
    case 'SUCCEEDED':
      return DeletionTaskStatusType.succeeded;
    case 'IN_PROGRESS':
      return DeletionTaskStatusType.inProgress;
    case 'FAILED':
      return DeletionTaskStatusType.failed;
    case 'NOT_STARTED':
      return DeletionTaskStatusType.notStarted;
  }
  throw Exception('$this is not known in enum DeletionTaskStatusType');
}