Serializer<T> class

Constructors

Serializer(dynamic data)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(T m) → Map<String, dynamic>
coverage:ignore-start convert model into Map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
coverage:ignore-end
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

hasItem(Serializer<Object?> serializer) → bool
true when serializer was made with one item (not a list and not null). For the JSON writer that @Serialize() makes.
itemOf<T>(Serializer<T> serializer) → T
The one item of serializer. Only call it when hasItem is true. For the JSON writer that @Serialize() makes.
listOf<T>(Serializer<T> serializer) → List<T>?
The items of serializer when it was made with a list, so its JSON is an array. Else null. For the JSON writer that @Serialize() makes.