NmWebhookDelivery class

One delivery attempt of a webhook (the «Deliveries» list).

Annotations

Constructors

NmWebhookDelivery({required String event, required String status, String? createdAt, int? httpStatus, int attempts = 0, String? nextAt, String? lastError})
Creates an NmWebhookDelivery.
const
NmWebhookDelivery.fromJson(Map<String, dynamic> j)
Reads the JSON shape {event, status, createdAt, httpStatus, attempts, nextAt, lastError}.
factory

Properties

attempts → int
Attempts made.
final
createdAt → String?
When the delivery was created.
final
event → String
Event name.
final
hashCode → int
The hash code for this object.
no setterinherited
httpStatus → int?
HTTP status of the last attempt.
final
lastError → String?
Error of the last failed attempt.
final
nextAt → String?
When a pending delivery is retried.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String
delivered, failed or pending.
final

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