toValue method
Implementation
String toValue() {
switch (this) {
case RequestStatus.pending:
return 'PENDING';
case RequestStatus.caseOpened:
return 'CASE_OPENED';
case RequestStatus.approved:
return 'APPROVED';
case RequestStatus.denied:
return 'DENIED';
case RequestStatus.caseClosed:
return 'CASE_CLOSED';
}
}