WebhookEventAttributes class

Constructors

WebhookEventAttributes({required String endpoint, required Object payload, required WebhookEventAttributesEventEnum event, required WebhookEventAttributesStatusEnum status, required int? lastResponseCode, required String? lastResponseBody, required DateTime created, required DateTime updated})
Returns a new WebhookEventAttributes instance.

Properties

created ↔ DateTime
When the event was created.
getter/setter pair
endpoint ↔ String
The endpoint that the event will be sent to.
getter/setter pair
event ↔ WebhookEventAttributesEventEnum
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
lastResponseBody ↔ String?
The last HTTP response body that your webhook endpoint sent in response to the webhook.
getter/setter pair
lastResponseCode ↔ int?
The last HTTP response code that your webhook endpoint sent in response to the webhook.
getter/setter pair
payload ↔ Object
The event payload in serialized JSON format.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ WebhookEventAttributesStatusEnum
The current status of the event. Possible statuses are: DELIVERING, DELIVERED, FAILING, and FAILED.
getter/setter pair
updated ↔ DateTime
When the event was last updated.
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) → WebhookEventAttributes?
Returns a new WebhookEventAttributes instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<WebhookEventAttributes>
mapFromJson(dynamic json) → Map<String, WebhookEventAttributes>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<WebhookEventAttributes>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.