TeamRoomBind class

Constructors

TeamRoomBind({List<String> bindings = const [], String? id, String? life, String? workspace})
Returns a new TeamRoomBind instance.

Properties

bindings ↔ List<String>
Bindings REPLACES what the room is about, wholly. It is a replace and not a merge because a caller that cannot remove a binding would have no way to correct a wrong one, and an empty list sent explicitly is how a room is unbound. Absent (null) leaves the existing list alone.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the room to bind, from the path. The URL is the authority; a body carrying another id cannot redirect the write.
getter/setter pair
life ↔ String?
Life sets the lifecycle intent: "standing" or "bound". Any other value is refused rather than stored, so a reader never has to interpret a third one. Empty leaves the current intent unchanged.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workspace ↔ String?
Workspace names the workspace holding the room. It is required, because a room id is unique only within one and searching every workspace for a matching id would make the write's target depend on iteration order.
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) → TeamRoomBind?
Returns a new TeamRoomBind instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TeamRoomBind>
mapFromJson(dynamic json) → Map<String, TeamRoomBind>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TeamRoomBind>>

Constants

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