toAssignmentStatus function

AssignmentStatus toAssignmentStatus(
  1. int? index
)

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;
}