toAssignmentStatusType method

AssignmentStatusType toAssignmentStatusType()

Implementation

AssignmentStatusType toAssignmentStatusType() {
  switch (this) {
    case 'Assigned':
      return AssignmentStatusType.assigned;
    case 'Unassigned':
      return AssignmentStatusType.unassigned;
    case 'Any':
      return AssignmentStatusType.any;
  }
  throw Exception('$this is not known in enum AssignmentStatusType');
}