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 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

deserialize(JSON json) → T
deserializes a json into a T 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