toPreviewStatus method
Implementation
PreviewStatus toPreviewStatus() {
switch (this) {
case 'WORK_IN_PROGRESS':
return PreviewStatus.workInProgress;
case 'COMPLETED':
return PreviewStatus.completed;
}
throw Exception('$this is not known in enum PreviewStatus');
}