DeliveryRow class

Constructors

DeliveryRow({int? attempt, String? created, String? delivery, int? durationMs, String? endpoint, String? error, int? httpStatus, String? status, String? subject})
Returns a new DeliveryRow instance.

Properties

attempt ↔ int?
Attempt is which try this row is, starting at 1. The ladder waits 1s, then 5s, then 25s before the next one.
getter/setter pair
created ↔ String?
Created is when the attempt was made, RFC3339 in UTC.
getter/setter pair
delivery ↔ String?
DeliveryID groups the attempts for ONE event to ONE endpoint. Rows sharing it are the same delivery being retried, not separate events.
getter/setter pair
durationMs ↔ int?
DurationMs is how long this attempt took end to end, in MILLISECONDS.
getter/setter pair
endpoint ↔ String?
EndpointID is which subscriber this attempt was for.
getter/setter pair
error ↔ String?
Error says what went wrong on a non-ok attempt. Empty on success.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
httpStatus ↔ int?
HTTPStatus is what the subscriber answered. ZERO means it never answered — a refused connection, a DNS failure or a timeout — which is why a zero here is not a 200.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is "ok" when the subscriber accepted it, "retrying" while a further attempt will follow, and "failed" when none will. Exactly one row of a delivery is terminal.
getter/setter pair
subject ↔ String?
Subject is the event that was delivered ("commerce.order.created"). A manual test send carries "webhook.test".
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) → DeliveryRow?
Returns a new DeliveryRow instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<DeliveryRow>
mapFromJson(dynamic json) → Map<String, DeliveryRow>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<DeliveryRow>>

Constants

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