Serializer<T> class

Serializes a single type.

You should not usually need to implement this interface. Implementations are provided for collections and primitives in built_json. Classes using built_value and enums using EnumClass can have implementations generated using built_json_generator.

Implementations must extend either PrimitiveSerializer or StructuredSerializer.

Implementers

Constructors

Serializer()

Properties

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
types Iterable<Type>
The Types that can be serialized. [...]
read-only
wireName String
The wire name of the serializable type. For most classes, the class name. For primitives and collections a lower-case name is defined as part of the built_json wire format.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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