Payload class

Messaging — Traffic Monitor Event — payload

Constructors

Payload({required String subscriptionId, required int seq, required List<MonitorEvent> events, required int dropped, required String expiresAt, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

dropped → int
Events that matched the filter but were discarded since the previous batch — rate ceiling exceeded or subscriber not connected.
final
events → List<MonitorEvent>
Events in the order the mediator observed them. May be empty on a heartbeat batch.
final
expiresAt → String
The subscription's current expiry, so the subscriber can renew before it lapses.
final
ext → Ext?
Ecosystem-defined extension members per SPEC.md §4.5.1.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seq → int
Batch sequence number, starting at 1 and increasing by exactly 1 per batch within a subscription. A gap means batches were lost in transit.
final
subscriptionId → String
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