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

fields → List<DVProtocolField>
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
synced → bool
final

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