SimpleMapper1<T> class abstract Custom Mappers

Interface to define custom mappers for generic types with 1 argument.

Inheritance

Constructors

SimpleMapper1()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
A unique id for this type, defaults to the name of the type. Override this if you have two types with the same name.
no setterinherited
implType Type
Optional type of the implementations of T used for decoding.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
no setterinherited
typeFactory Function
A type factory is what makes generic types work.
no setterinherited

Methods

createElement(MapperContainer container) MapperElementBase<T>
inherited
decode<A>(dynamic value) → T
Override as MyClass<A> encode<A>(dynamic value)
encode<A>(T self) → dynamic
Override as dynamic encode<A>(MyClass<A> self)
equals(T self, T other) bool
inherited
hash(T self) int
Creates a combined hash code for a number of objects.
inherited
isFor(dynamic v) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stringify(T self) String
inherited
toString() String
A string representation of this object.
inherited

Operators

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