toReceivedStatus method
Implementation
ReceivedStatus toReceivedStatus() {
switch (this) {
case 'PENDING_WORKFLOW':
return ReceivedStatus.pendingWorkflow;
case 'PENDING_ACCEPT':
return ReceivedStatus.pendingAccept;
case 'REJECTED':
return ReceivedStatus.rejected;
case 'ACTIVE':
return ReceivedStatus.active;
case 'FAILED_WORKFLOW':
return ReceivedStatus.failedWorkflow;
case 'DELETED':
return ReceivedStatus.deleted;
case 'DISABLED':
return ReceivedStatus.disabled;
}
throw Exception('$this is not known in enum ReceivedStatus');
}