RealtimeMessage class

Realtime Message

Constructors

RealtimeMessage({required List<String> events, required Map<String, dynamic> payload, required List<String> channels, required String timestamp})
Initializes a RealtimeMessage
RealtimeMessage.fromJson(String source)
Initializes a RealtimeMessage from a JSON String.
factory
RealtimeMessage.fromMap(Map<String, dynamic> map)
Initializes a RealtimeMessage from a Map<String, dynamic>.
factory

Properties

channels List<String>
All channels that match this event
final
events List<String>
All permutations of the system event that triggered this message
final
hashCode int
The hash code for this object.
no setteroverride
payload Map<String, dynamic>
The data related to the event
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp String
ISO 8601 formatted timestamp in UTC timezone in which the event was sent from Appwrite
final

Methods

copyWith({List<String>? events, Map<String, dynamic>? payload, List<String>? channels, String? timestamp}) RealtimeMessage
Returns a copy of this RealtimeMessage with specified attributes overridden.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts a RealtimeMessage to a JSON String.
toMap() Map<String, dynamic>
Returns a Map<String, dynamic> representation of this RealtimeMessage.
toString() String
Returns a string representation of this RealtimeMessage.
override

Operators

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