toProjectStatus method
Implementation
ProjectStatus toProjectStatus() {
switch (this) {
case 'Pending':
return ProjectStatus.pending;
case 'CreateInProgress':
return ProjectStatus.createInProgress;
case 'CreateCompleted':
return ProjectStatus.createCompleted;
case 'CreateFailed':
return ProjectStatus.createFailed;
case 'DeleteInProgress':
return ProjectStatus.deleteInProgress;
case 'DeleteFailed':
return ProjectStatus.deleteFailed;
case 'DeleteCompleted':
return ProjectStatus.deleteCompleted;
}
throw Exception('$this is not known in enum ProjectStatus');
}