EnumType<T extends Enum> class
Represents an enumeration type for JSON serialization.
The EnumType class extends the GenericType class and provides additional functionality
for working with enumeration values. It allows parsing enum values from strings
and serializing them to their string names.
@typeparam T The enum type that this EnumType handles.
Constructors
Properties
Methods
-
createList(
) → List< T> -
Creates an empty list of type
T.inherited -
createListOfMapOfT(
) → List< Map< String, T> > -
Creates an empty list of maps with keys of type String and values of type
T.inherited -
createMapOfListOfNullableT(
) → Map< String, List< T> ?> -
Creates an empty map with keys of type String and nullable values of type List of
T.inherited -
createMapOfListOfT(
) → Map< String, List< T> > -
Creates an empty map with keys of type String and values of type List of
T.inherited -
createMapOfNullableT(
) → Map< String, T?> -
Creates an empty map with keys of type String and nullable values of type
T.inherited -
createMapOfT(
) → Map< String, T> -
Creates an empty map with keys of type String and values of type
T.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String value) → T - Parses the given value and returns the corresponding enumeration value.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited