convertDartType function

  1. @Deprecated('No replacement yet')
GraphQLType? convertDartType(
  1. Type type, [
  2. 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('No replacement yet')
GraphQLType? convertDartType(Type type, [List<Type>? typeArguments]) {
  if (_cache[type] != null) {
    return _cache[type];
  } else {
    return _objectTypeFromDartType(type, typeArguments);
  }
}