EnumMapper<T extends Enum> class
abstract
Custom Mappers
- Inheritance
-
- Object
- MapperBase<
T> - SimpleMapper<
T> - EnumMapper
Constructors
- EnumMapper()
-
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(
dynamic value) → T -
inherited
-
encode(
T self) → dynamic -
inherited
-
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