JsonEnumConverter<E extends Enum, S> class
abstract
Constructors
- JsonEnumConverter.new()
-
const
- JsonEnumConverter.withCache()
-
Creates a new JsonEnumConverter, holds an internal cache that maps
each enum value to a its converted json value, as per
toJson
.const
Properties
-
enumValues
→ List<
E> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromJson(
S json) → E -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
E object) → S -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited