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

fallback → String?
final
hashCode → int
The hash code for this object.
no setterinherited
members → List<String>
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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