utils library

Classes

GeneratorCtx

Extensions

InterfaceElementIsEnum on InterfaceElement

Constants

freezedTypeChecker → const TypeChecker
graphQLDocTypeChecker → const TypeChecker
graphQLObjectTypeChecker → const TypeChecker
jsonSerializableTypeChecker → const TypeChecker

Properties

graphQLFieldSuffix String
no setter
graphqlTypeSuffix String
no setter
serializerSuffix String
no setter
unionKeySuffix String
no setter

Functions

dartObjectToString(DartObject v) String
taken from https://github.com/angel-dart-archive/serialize/blob/be6a3669cca34cd83d189a1169edf6f381101cd8/angel_serialize_generator/lib/angel_serialize_generator.dart#L77 check https://github.com/google/json_serializable.dart/blob/d2fe5141a333e2109fd1511e1520bc13374a63e9/json_serializable/lib/src/json_key_utils.dart#L44
documentationOfParameter(ParameterElement parameter, BuildStep buildStep) Future<String>
generateSerializer(ClassElement clazz) bool
genericTypeWhenFutureOrStream(DartType type) → DartType?
getAttachments(Element element) String?
getClassConfig(GeneratorCtx ctx, InterfaceElement clazz) → GraphQLObject?
getDefaultValue(Element elem) String?
getDeprecationReason(Element element) String?
getDescription(Element element, String? docComment) String?
getDocumentation(Element element) → GraphQLDocumentation?
getGraphQLInterfaces(GeneratorCtx ctx, InterfaceElement clazz) List<Expression>
getReturnType(DartType _retType) String
getSourceCodeAnnotation(ElementAnnotation e) String
hasFromJson(InterfaceElement clazz) bool
inferType(List<CustomTypes> customTypes, Element typeElement, String name, DartType type, {bool? nullable, String? genericTypeName, Map<String, TypeParameterElement>? generics, bool isInput = false}) → Expression
inputTypeAnnotation(Element elem) → GraphQLInput?
isGraphQLObject(InterfaceType clazz) bool
isInputType(Element elem) bool
isInterface(InterfaceElement clazz) bool
isStreamOrAsyncStream(DartType type) bool
tryGetAstNodeForElement(Element element, BuildStep buildStep) Future<AstNode>