NmWebhook class

One outbound webhook of NmWebhooksSection.

Annotations

Constructors

NmWebhook({required int id, required String url, List<String> events = const [], String? secretHint, String? lastStatus, String? lastAt})
Creates an NmWebhook.
const
NmWebhook.fromJson(Map<String, dynamic> j)
Reads the JSON shape {id, url, events, secretHint, lastStatus, lastAt}.
factory

Properties

events → List<String>
Subscribed events.
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
Server id.
final
lastAt → String?
When the last delivery happened, as the server formats it.
final
lastStatus → String?
Status of the last delivery (e.g. delivered, failed, an HTTP code); null = none yet.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secretHint → String?
A short hint of the signing secret (e.g. its last characters); null = not shown.
final
url → String
The https address the events are posted to.
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