Serializable class

Marks a class as eligible for serialization.

Constructors

Serializable({List<int> serializers: const [Serializers.map, Serializers.json], bool autoSnakeCaseNames: true, @deprecated bool autoIdAndDateFields: true, List includeAnnotations: const []})
const

Properties

autoIdAndDateFields bool
Overrides the setting in JsonModelGenerator.
final
autoSnakeCaseNames bool
Overrides the setting in SerializerGenerator.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
includeAnnotations List
A list of constant members to affix to the generated class.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
serializers List<int>
A list of enabled serialization modes. [...]
final

Methods

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 ==(Object other) bool
The equality operator. [...]
inherited