toApprovalStatus method
Implementation
ApprovalStatus toApprovalStatus() {
switch (this) {
case 'Approved':
return ApprovalStatus.approved;
case 'Rejected':
return ApprovalStatus.rejected;
}
throw Exception('$this is not known in enum ApprovalStatus');
}