MmCreateOutgoingWebhookRequest class

Constructors

MmCreateOutgoingWebhookRequest({required String teamId, String? channelId, String? creatorId, String? description, required String displayName, List<String> triggerWords = const [], int? triggerWhen, List<String> callbackUrls = const [], String contentType = 'application/x-www-form-urlencoded'})
Returns a new MmCreateOutgoingWebhookRequest instance.

Properties

callbackUrls List<String>
The URLs to POST the payloads to when the webhook is triggered
getter/setter pair
channelId String?
The ID of a public channel that the webhook watchs
getter/setter pair
contentType String
The format to POST the data in, either application/json or application/x-www-form-urlencoded
getter/setter pair
creatorId String?
The ID of the owner of the webhook if different than the requester. Required in local mode.
getter/setter pair
description String?
The description for this outgoing webhook
getter/setter pair
displayName String
The display name for this outgoing webhook
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teamId String
The ID of the team that the webhook watchs
getter/setter pair
triggerWhen int?
When to trigger the webhook, 0 when a trigger word is present at all and 1 if the message starts with a trigger word
getter/setter pair
triggerWords List<String>
List of words for the webhook to trigger on
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) MmCreateOutgoingWebhookRequest?
Returns a new MmCreateOutgoingWebhookRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<MmCreateOutgoingWebhookRequest>?
mapFromJson(dynamic json) Map<String, MmCreateOutgoingWebhookRequest>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<MmCreateOutgoingWebhookRequest>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.