generator_models library

Functions

classInfoFromConstructor(GeneratorCtx ctx, InterfaceElement clazz, ConstructorElement con, {required bool isUnion, required Iterable<Future<FieldInfo>> unionClassFields, GraphQLInput? inputConfig, GraphQLObject? classConfig}) Future<UnionVarianInfo>
fieldFromElement(GraphQLObject? clazz, Element method, DartType type, GeneratorCtx ctx, Map<String, TypeParameterElement> generics) Future<FieldInfo>
fieldFromParam(GeneratorCtx ctx, GraphQLObject? clazz, ParameterElement param, {required bool isInput, required Map<String, TypeParameterElement> generics}) Future<FieldInfo>
fieldsFromClass(InterfaceElement clazz, GeneratorCtx ctx, {bool isInput = false}) Iterable<Future<FieldInfo>>
freezedVariants(InterfaceElement clazz, GeneratorCtx ctx, {required bool isInput}) Future<List<UnionVarianInfo>>
getFieldAnnot(GraphQLObject? clazz, Element e) → GraphQLField
isFreezedVariantConstructor(ConstructorElement con) bool
serializerDefinitionCode(String typeName, {required bool hasFrezzed, String? constructorName}) String