convertDartType function

  1. @deprecated
GraphQLType convertDartType (Type type, [ List<Type> typeArguments ])

Reflects upon a given type and dynamically generates a GraphQLType that corresponds to it.

This function is aware of the annotations from package:angel_serialize, and works seamlessly with them.

Implementation

@deprecated
GraphQLType convertDartType(Type type, [List<Type> typeArguments]) {
  if (_cache[type] != null) {
    return _cache[type];
  } else {
    return _objectTypeFromDartType(type, typeArguments);
  }
}