DVProtocolModel class
A model: the fields a client reads and writes, and whether it syncs.
synced is part of the contract because the sync schema is: a model that stops syncing leaves an old client subscribed to a stream that never comes.
Constructors
-
DVProtocolModel(String name, List<
DVProtocolField> fields, {bool synced = false}) -
const
Properties
Methods
-
field(
String name) → DVProtocolField? -
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) → DVProtocolModel