$PubsubMessage class Null safety

Used by:

  • cloudscheduler:v1 : PubsubMessage
  • pubsub:v1 : PubsubMessage


$PubsubMessage({Map<String, String>? attributes, String? data, String? messageId, String? orderingKey, String? publishTime})
$PubsubMessage.fromJson(Map _json)


attributes Map<String, String>?
Attributes for this message. [...]
read / write
data String?
The message data field. [...]
read / write
dataAsBytes List<int>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
messageId String?
ID of this message, assigned by the server when the message is published. [...]
read / write
orderingKey String?
If non-empty, identifies related messages for which publish order should be respected. [...]
read / write
publishTime String?
The time at which the message was published, populated by the server when it receives the Publish call. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]