toValue method
Implementation
String toValue() {
switch (this) {
case GrantStatus.pendingWorkflow:
return 'PENDING_WORKFLOW';
case GrantStatus.pendingAccept:
return 'PENDING_ACCEPT';
case GrantStatus.rejected:
return 'REJECTED';
case GrantStatus.active:
return 'ACTIVE';
case GrantStatus.failedWorkflow:
return 'FAILED_WORKFLOW';
case GrantStatus.deleted:
return 'DELETED';
case GrantStatus.pendingDelete:
return 'PENDING_DELETE';
case GrantStatus.disabled:
return 'DISABLED';
}
}