Serializer<T extends DatabaseStorable> class

A Serializer that takes a fromJson constructor and used it for deserialization.

Inheritance

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 object
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

construct() → T
constructs a new T object from an empty json
inherited
deserialize(JSON json) → T
deserializes a json into a T object. A empty json should also yield a correct object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(T element) JSON
serializes element into JSON
override
toString() String
A string representation of this object.
inherited

Operators

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