convertDartType function
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);
}
}