AuthOrganizationMembershipMutation class final

One authorization-checked organization membership mutation.

Stores must compare both membership snapshots and apply the mutation in a single transaction. A mismatch must fail closed; callers must not retry the write with a newly read snapshot without repeating authorization.

Constructors

AuthOrganizationMembershipMutation({required AuthOrganizationMembershipMutationKind kind, required AuthOrganizationMember actorMembership, required AuthOrganizationMember targetMembership, required String creatorRole, Iterable<String>? replacementRoles, Iterable<AuthOrganizationRole> actorRoleSnapshots = const <AuthOrganizationRole>[]})
Creates an instance of AuthOrganizationMembershipMutation.

Properties

actorMembership AuthOrganizationMember
The actor membership associated with this value.
final
actorRoleSnapshots List<AuthOrganizationRole>
The roles assigned to this value.
final
creatorRole String
The roles assigned to this value.
final
hashCode int
The hash code for this object.
no setterinherited
kind AuthOrganizationMembershipMutationKind
The kind associated with this value.
final
replacementRoles List<String>?
The roles assigned to this value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetMembership AuthOrganizationMember
The target membership associated with this value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited