SerializerGenerator class

Inheritance

Constructors

SerializerGenerator({bool autoSnakeCaseNames: true })
const

Properties

autoSnakeCaseNames → bool
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
typeChecker TypeChecker
read-only, inherited

Methods

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. [...]
override
generateFromMapMethod(ClassBuilder clazz, BuildContext ctx, LibraryBuilder file) → void
generateToMapMethod(ClassBuilder clazz, BuildContext ctx, LibraryBuilder file) → void
generate(LibraryReader library, BuildStep buildStep) → FutureOr<String>
Generates Dart code for an input Dart library. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited