Serializer<ModelType> class

Extend this class to create a Serializer for a Type

Example:

class User {
  String name;
  int age;
}

@GenSerializer()
class UserSerializer extends Serializer<User> with _$UserSerializer {}

Constructors

Serializer()
const

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clone(ModelType object) → ModelType
Clone an object using the serializer
fromList(List<Map> model) → List<ModelType>
fromMap(Map map) → ModelType
/// To implement ////// Decodes model from Map
getJserDefault<T>(String field) → T
makeList() → List<ModelType>
modelType() → Type
Return the Type handle by this Serializer
toList(List<ModelType> model) → List<Map>
toMap(ModelType model) → Map<String, dynamic>
Encodes model to Map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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