isGraphQLObject function
Implementation
bool isGraphQLObject(InterfaceType clazz) {
InterfaceType? search = clazz;
while (search != null) {
if (graphQLObjectTypeChecker.hasAnnotationOf(search.element)) return true;
search = search.superclass;
}
return false;
}