SerializerGenerator class

Constructors

SerializerGenerator({bool autoSnakeCaseNames = true})
const

Properties

autoSnakeCaseNames bool
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
throwOnUnresolved bool
finalinherited
typeChecker → TypeChecker
no setterinherited

Methods

generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Generates Dart code for an input Dart library.
inherited
generateClass(List<int> serializers, BuildContext ctx, LibraryBuilder file) → void
Generate a serializer class.
generateFieldsClass(BuildContext ctx, LibraryBuilder file) → void
generateForAnnotatedElement(Element element, ConstantReader annotation, BuildStep buildStep) Future<String?>
Implement to return source code to generate for element.
generateFromMapMethod(ClassBuilder clazz, BuildContext ctx, LibraryBuilder file) → void
generateToMapMethod(ClassBuilder clazz, BuildContext ctx, LibraryBuilder file) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited