AllowlistPutIn class

Constructors

AllowlistPutIn({Map<String, Map<String, List<String>>> accessGroups = const {}, String? channel, List<String> dm = const [], String? dmPolicy, List<String> group = const [], String? groupPolicy})
Returns a new AllowlistPutIn instance.

Properties

accessGroups ↔ Map<String, Map<String, List<String>>>
AccessGroups REPLACES the org's named access groups, as group name -> channel -> entries. Absent or null leaves them alone.
getter/setter pair
channel ↔ String?
Channel is the transport to edit: discord, slack, teams, telegram or whatsapp. Required; an unknown value is a 404.
getter/setter pair
dm ↔ List<String>
DM REPLACES the config-managed DM allow entries. Absent or null leaves them alone; an empty list clears them. It never touches senders approved through pairing — a policy edit cannot revoke an approved pairing.
getter/setter pair
dmPolicy ↔ String?
DMPolicy sets how direct messages are admitted: "pairing" (a person must be approved first), "allowlist" (only listed senders) or "open". Empty leaves it unchanged.
getter/setter pair
group ↔ List<String>
Group REPLACES the config-managed group allow entries. Absent or null leaves them alone; an empty list clears them.
getter/setter pair
groupPolicy ↔ String?
GroupPolicy sets how group and thread rooms are admitted: "open", "allowlist" or "disabled". Empty leaves it unchanged.
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

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) → AllowlistPutIn?
Returns a new AllowlistPutIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<AllowlistPutIn>
mapFromJson(dynamic json) → Map<String, AllowlistPutIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<AllowlistPutIn>>

Constants

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