WebhookEntity class
Constructors
- WebhookEntity({required String id, required String project, required DateTime created, required DateTime updated, required WebhookEvent event, required String targetUrl, required String version, bool isActive = true, String signinSecret = ''})
-
const
-
WebhookEntity.fromJson(Map<
String, dynamic> json) -
factory
Properties
- created → DateTime
-
date-time when a webhook was created.
final
- event → WebhookEvent
-
An event you subscribe to. Presently, only supports the
file.uploaded
event.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Webhook's ID
final
- isActive → bool
-
Marks a subscription as either active or not
final
- project → String
-
Project ID the webhook belongs to.
final
-
props
→ List<
Object?> -
nodoc
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signinSecret → String
-
Optional HMAC/SHA-256 secret that, if set, will be used to calculate signatures for the webhook payloads sent to the targetUrl.
Calculated signature will be sent to the targetUrl as a value of the
X-Uc-Signature
HTTP header. The header will have the following format:X-Uc-Signature: v1=<HMAC-SHA256-HEX-DIGEST>
. See https://uploadcare.com/docs/security/secure-webhooks/final - stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - targetUrl → String
-
A URL that is triggered by an event, for example, a file upload. A target URL MUST be unique for each project — event combination.
final
- updated → DateTime
-
date-time when a webhook was updated.
final
- version → String
-
Webhook payload's version.
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