MessageStatusEvent class
Represents a message status event (delivered, read, failed, etc.).
- Inheritance
-
- Object
- WebhookEvent
- MessageStatusEvent
- Annotations
Constructors
-
MessageStatusEvent({required String messageId, required String status, required DateTime timestamp, required String recipient, Map<
String, dynamic> ? conversation, Map<String, dynamic> ? pricing, Map<String, dynamic> ? error, required Map<String, dynamic> rawPayload}) -
Creates a new message status event.
const
-
MessageStatusEvent.fromJson(Map<
String, dynamic> json) -
Factory to create a status event from a webhook payload.
factory
Properties
-
conversation
→ Map<
String, dynamic> ? -
Optional conversation information
final
-
error
→ Map<
String, dynamic> ? -
Optional error information if status is 'failed'
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDelivered → bool
-
Whether the message was successfully delivered
no setter
- isFailed → bool
-
Whether the message failed to send
no setter
- isRead → bool
-
Whether the message was read by the recipient
no setter
- isSent → bool
-
Whether the message was sent successfully
no setter
- messageId → String
-
ID of the message whose status changed
final
-
pricing
→ Map<
String, dynamic> ? -
Optional pricing information
final
-
rawPayload
→ Map<
String, dynamic> -
Raw JSON payload from the webhook
finalinherited
- recipient → String
-
Recipient's phone number
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
New status of the message
final
- timestamp → DateTime
-
Timestamp when status changed
final
- type → WebhookNotificationType
-
Type of the webhook notification
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited