JsonDesSer<T> class abstract

If you want to store your classes as JSON (which is recommended), use this class and only provide implementation of two methods which converts your objects from and to map.

Inheritance

Constructors

JsonDesSer()

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
Key of the (de)serializer that is used to write and read objects into shared_preferences.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deserialize(String s) → T
override
fromMap(Map<String, dynamic> map) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(T t) String
override
toMap(T t) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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