DVProtocolEnum class
An enum that crosses the wire, serialized by member name.
fallback is the member an old client is handed for a member it has never heard of. Without one, a new member is not something an adapter may guess at: the old client is told to upgrade.
Constructors
-
DVProtocolEnum(String name, List<
String> members, {String? fallback}) -
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → DVProtocolEnum