WebHookPostModel class
Constructors
-
WebHookPostModel.new({required String projectId, required WebHookEventTypeModel eventType, required String url, required RequestTypeModel requestType, required bool shouldSendBody, Map<
String, String> headers = const {}, Map<String, String> queryParameters = const {}, required bool isEnabled, required bool shouldSendCustomBody, required bool shouldReplaceParameters, required bool shouldEscapeParameters, required String name, String? description, String? customBody}) - Returns a new WebHookPostModel instance.
Properties
- customBody ↔ String?
-
Custom body of the webhook
getter/setter pair
- description ↔ String?
-
Description of the webhook
getter/setter pair
- eventType ↔ WebHookEventTypeModel
-
Type of event which triggers the webhook
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
headers
↔ Map<
String, String> -
Collection of the webhook headers
getter/setter pair
- isEnabled ↔ bool
-
Indicates if the webhook is active
getter/setter pair
- name ↔ String
-
Name of the webhook
getter/setter pair
- projectId ↔ String
-
Unique ID of the webhook project
getter/setter pair
-
queryParameters
↔ Map<
String, String> -
Collection of the webhook query parameters
getter/setter pair
- requestType ↔ RequestTypeModel
-
Request method of the webhook
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldEscapeParameters ↔ bool
-
Indicates if the webhook escapes invalid characters in parameters
getter/setter pair
- shouldReplaceParameters ↔ bool
-
Indicates if the webhook injects parameters
getter/setter pair
- shouldSendBody ↔ bool
-
Indicates if the webhook sends body
getter/setter pair
- shouldSendCustomBody ↔ bool
-
Indicates if the webhook sends custom body
getter/setter pair
- url ↔ String
-
Request URL of the webhook
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → WebHookPostModel? -
Returns a new WebHookPostModel instance and imports its values from
value
if it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< WebHookPostModel> -
mapFromJson(
dynamic json) → Map< String, WebHookPostModel> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< WebHookPostModel> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.