toAssignmentStatus function
Implementation
AssignmentStatus toAssignmentStatus(int? index) {
switch (index) {
case 0:
return AssignmentStatus.success;
case 1:
return AssignmentStatus.declined;
case 2:
return AssignmentStatus.open;
}
return AssignmentStatus.unknown;
}