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