convertToString method
Converts the approval request type to its string representation.
Returns the string representation of the ApprovalRequestType
enum value.
Implementation
String convertToString() {
switch (this) {
case ApprovalRequestType.awaiting:
return 'awaiting';
case ApprovalRequestType.rejected:
return 'rejected';
case ApprovalRequestType.approved:
return 'approved';
}
}