Delivery class

Constructors

Delivery({String? data, Map<String, List<String>> headers = const {}, int? numDelivered, int? numPending, int? sequence, String? subject, DateTime? timestamp})
Returns a new Delivery instance.

Properties

data ↔ String?
Data is the payload, base64-encoded.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
headers ↔ Map<String, List<String>>
Headers are the message headers, when any were published.
getter/setter pair
numDelivered ↔ int?
Delivered is how many times a consumer has been handed this message (pulls only).
getter/setter pair
numPending ↔ int?
Remaining is how many messages follow this one for the consumer (pulls only).
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequence ↔ int?
Sequence is the message's stream sequence.
getter/setter pair
subject ↔ String?
Subject is the org-relative subject the message was stored under.
getter/setter pair
timestamp ↔ DateTime?
Timestamp is when the broker stored the message.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Delivery?
Returns a new Delivery instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Delivery>
mapFromJson(dynamic json) → Map<String, Delivery>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Delivery>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.