MmOutgoingWebhook class

Constructors

MmOutgoingWebhook({String? id, int? createAt, int? updateAt, int? deleteAt, String? creatorId, String? teamId, String? channelId, String? description, String? displayName, List<String> triggerWords = const [], int? triggerWhen, List<String> callbackUrls = const [], String contentType = 'application/x-www-form-urlencoded'})
Returns a new MmOutgoingWebhook 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
createAt int?
The time in milliseconds a outgoing webhook was created
getter/setter pair
creatorId String?
The Id of the user who created the webhook
getter/setter pair
deleteAt int?
The time in milliseconds a outgoing webhook was deleted
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
id String?
The unique identifier for this outgoing webhook
getter/setter pair
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
updateAt int?
The time in milliseconds a outgoing webhook was last updated
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) MmOutgoingWebhook?
Returns a new MmOutgoingWebhook instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<MmOutgoingWebhook>?
mapFromJson(dynamic json) Map<String, MmOutgoingWebhook>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<MmOutgoingWebhook>>

Constants

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