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
baseUrl Is the base URL of the webhook, this baseUrl should be appened with the paths to create the full URL.
getter/setter pairinherited
contentType WebhookFormat
contentType is 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>
headers is 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.com
getter/setter pairinherited
method WebhookMethod
method is 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>
paths is 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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_WebhookStructureInput value)?) → TResult?

Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_WebhookStructureInput value)?, {required TResult orElse()}) → TResult

Available on WebhookStructureInput, provided by the WebhookStructureInputPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited