Membership class
The active-organization membership carried by a verified token.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
permissions
→ List<
String> -
Effective permission ids:
org:sys_*system claims plus the operator's customorg:<feature>:<action>ids.final - role → String
-
Canonical role key (
owner/admin/member, or a project role).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
teams
→ List<
String> ? -
Team ids held inside the ACTIVE organization.
final
Methods
-
has(
{String? role, String? permission, String? teamId}) → bool - Whether the membership satisfies EVERY supplied criterion (AND).
-
hasPermission(
String permission) → bool -
Whether the permission claim includes
permission. Exact match only. -
hasTeam(
String teamId) → bool -
Whether the team claim includes
teamId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromClaim(
Object? raw) → Membership? -
Decode the
membershipclaim, or return null when the token carries none.