WebhookStructureInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
WebhookStructureInput({@Default.new('') String baseUrl, @Default.new([]) List<
WebhookPathInput> paths, @WebhookMethodConverter() @Default.new(WebhookMethod.post) WebhookMethod method, @WebhookFormatConverter() @Default.new(WebhookFormat.json) WebhookFormat contentType, @Default.new([]) List<WebhookHeaderInput> headers}) -
factory
-
WebhookStructureInput.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- baseUrl ↔ String
-
baseUrlIs the base URL of the webhook, thisbaseUrlshould be appened with thepathsto create the full URL.getter/setter pairinherited - contentType ↔ WebhookFormat
-
contentTypeis the format of the webhook.getter/setter pairinherited -
copyWith
→ $WebhookStructureInputCopyWith<
WebhookStructureInput> -
Create a copy of WebhookStructureInput
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ List<
WebhookHeaderInput> -
headersis the list of headers that the webhook should use. If you detect any issue with the headers, please contact the Layrz Integration Team at (support@layrz.com)mailto:support@layrz.comgetter/setter pairinherited - method ↔ WebhookMethod
-
methodis the HTTP method of the webhook. Be careful, not all of the HTTP methods are listed or available for webhook usage.getter/setter pairinherited -
paths
↔ List<
WebhookPathInput> -
pathsis the list of paths that the webhook should use.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_WebhookStructureInput value)) → TResult -
Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_WebhookStructureInput value)?) → TResult? -
Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_WebhookStructureInput value)?, {required TResult orElse()}) → TResult -
Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String baseUrl, List< WebhookPathInput> paths, WebhookMethod method, WebhookFormat contentType, List<WebhookHeaderInput> headers)?, {required TResult orElse()}) → TResult -
Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this WebhookStructureInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String baseUrl, List< WebhookPathInput> paths, WebhookMethod method, WebhookFormat contentType, List<WebhookHeaderInput> headers)) → TResult -
Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String baseUrl, List< WebhookPathInput> paths, WebhookMethod method, WebhookFormat contentType, List<WebhookHeaderInput> headers)?) → TResult? -
Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited