RoleSet class

Constructors

RoleSet({required RoleSetObjectEnum object, required String id, required String name, required String key, required String? description, List<RoleSetItem> roles = const [], RoleSetItem? defaultRole, RoleSetItem? creatorRole, required RoleSetTypeEnum type, RoleSetMigration? roleSetMigration, required int createdAt, required int updatedAt})
Returns a new RoleSet instance.

Properties

createdAt int
Unix timestamp of role set creation
getter/setter pair
creatorRole RoleSetItem?
The role assigned to the creator of an organization
getter/setter pair
defaultRole RoleSetItem?
The default role assigned to new organization members
getter/setter pair
description String?
Optional description of the role set
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
The unique identifier of the role set
getter/setter pair
key String
A unique key for the role set (e.g., "role_set:default")
getter/setter pair
name String
The name of the role set
getter/setter pair
object RoleSetObjectEnum
getter/setter pair
roles List<RoleSetItem>
The list of roles in this role set
getter/setter pair
roleSetMigration RoleSetMigration?
Active migration information, only present when status is "enqueued" or "in_progress"
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RoleSetTypeEnum
The type of the role set ("initial" or "custom")
getter/setter pair
updatedAt int
Unix timestamp of last role set update
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) RoleSet?
Returns a new RoleSet instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<RoleSet>
mapFromJson(dynamic json) Map<String, RoleSet>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<RoleSet>>

Constants

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