NmWebhooksData class

What NmWebhooksSection shows: whether webhooks can be added, the events one can subscribe to and the webhooks.

Annotations

Constructors

NmWebhooksData({required bool enabled, List<String> events = const [], List<NmWebhook> items = const []})
Creates an NmWebhooksData.
const
NmWebhooksData.fromJson(Map<String, dynamic> j)
Reads the JSON shape {enabled, events, items}.
factory

Properties

enabled → bool
The server can sign and send webhooks (false: list only, no add / test).
final
events → List<String>
Events one can subscribe to.
final
hashCode → int
The hash code for this object.
no setterinherited
items → List<NmWebhook>
The person's webhooks.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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