UnknownWebhookEvent class final

An event whose type this version of the package does not know.

Read type, data and raw to handle it yourself. A later version of the package may decode the same type into its own subclass, so match on type instead of on this class.

Inheritance

Constructors

UnknownWebhookEvent({required String type, required DateTime timestamp, required Object? data, JsonMap raw = const {}})
Creates the event.
const

Properties

data → Object?
The undecoded data value of the payload.
final
hashCode → int
The hash code for this object.
no setterinherited
raw → JsonMap
The JSON payload this event was decoded from.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
When the event occurred.
finalinherited
type → String
The event type, for example message.delivered.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonMap
Encodes this event as JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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