bool equals(Object o) { if (o is! SearchCriteria) { return false; } return toString() == o.toString(); }