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