Response class
Vault Sync — response payload
Constructors
-
Response({required List<
SiteTarget?> events, required int newSinceSeq, required bool truncated, Ext? ext}) -
const
-
Response.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
-
events
→ List<
SiteTarget?> -
Ordered events; consumer applies in order. Each event carries its own
seq(strictly monotonic, no gaps within a context). Shape is the same as sync/event/0.1's push form.final - ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- newSinceSeq → int
-
The seq value the consumer should persist for its next vault/sync call. Equal to
the highest event seq in this response, or the consumer's prior
sinceSeqif the response was empty.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- truncated → bool
-
true if more events exist beyond this page. Consumer SHOULD immediately call
vault/sync again with
sinceSeq = newSinceSeq.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited