TeamRoom class

Constructors

TeamRoom({bool? archived, List<String> bindings = const [], bool? direct, String? id, String? life, List<String> members = const [], String? name, bool? private, String? topic, String? workspace})
Returns a new TeamRoom instance.

Properties

archived ↔ bool?
Archived reports that the room has been closed. It is the platform's own Space attribute — the same one the Team client writes — and NOT a field of the work facet, so there is exactly one answer to "is this room open".
getter/setter pair
bindings ↔ List<String>
Bindings are what this room is ABOUT, each a "
getter/setter pair
direct ↔ bool?
Direct reports that this is a room between people rather than a named room. It is derived from the document's class, so it cannot disagree with what the client will render.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the room document's own id, and the value the bind op addresses. It is unique within a workspace, not across the org.
getter/setter pair
life ↔ String?
Life is the room's lifecycle INTENT — "standing" or "bound" (HIP-0523 §2). Absent on the document it reads "standing": a room nobody classified is one that persists.
getter/setter pair
members ↔ List<String>
Members are the account uuids in the room, agents included: an agent projects as a workspace member under a uuid derived from its id, so a caller comparing this against GET /v1/team/bots learns which rooms an agent is in.
getter/setter pair
name ↔ String?
Name is what a person sees in a sidebar. A direct message carries none, so this is empty for one — the members are its name.
getter/setter pair
private ↔ bool?
Private reports that the room is restricted to its members.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topic ↔ String?
Topic is the room's own one-line subject, as the Team client sets it.
getter/setter pair
workspace ↔ String?
Workspace is the workspace uuid holding this room. It is part of the room's address: two workspaces of one org may each hold a room with the same name, and only the pair identifies one.
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) → TeamRoom?
Returns a new TeamRoom instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TeamRoom>
mapFromJson(dynamic json) → Map<String, TeamRoom>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TeamRoom>>

Constants

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