BusMessage class
Constructors
-
BusMessage({String? data, Map<
String, List< headers = const {}, int? seq, String? subject, String? time})String> > - Returns a new BusMessage instance.
Properties
- data ↔ String?
-
Data is the payload as UTF-8 text.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
headers
↔ Map<
String, List< String> > -
Headers are the message's headers, when it carries any.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seq ↔ int?
-
Seq is the message's stream sequence — fetched messages only.
getter/setter pair
- subject ↔ String?
-
Subject is the message's subject in the org's own namespace.
getter/setter pair
- time ↔ String?
-
Time is when the stream stored the message, RFC3339 — fetched messages only.
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) → BusMessage? -
Returns a new BusMessage instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< BusMessage> -
mapFromJson(
dynamic json) → Map< String, BusMessage> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< BusMessage> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.