Serializer<T extends DatabaseStorable> class
A Serializer that takes a fromJson constructor and used it for deserialization.
- Implemented types
Constructors
- Serializer(T constructor(JSON))
- A Serializer that takes a fromJson constructor and used it for deserialization.
Properties
- constructor → T Function(JSON)
-
The constructor that takes a JSON object and returns a
T
objectfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deserialize(
JSON json) → T -
deserializes a
json
into aT
objectoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
T element) → JSON -
serializes
element
into JSONoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited