CreateRoleSetRequest class
Constructors
-
CreateRoleSetRequest({required String name, String? key, String? description, required String defaultRoleKey, required String creatorRoleKey, CreateRoleSetRequestTypeEnum? type, List<
String> roles = const []}) - Returns a new CreateRoleSetRequest instance.
Properties
- creatorRoleKey ↔ String
-
The key of the role to assign to organization creators. Must be one of the roles in the
rolesarray.getter/setter pair - defaultRoleKey ↔ String
-
The key of the role to use as the default role for new organization members. Must be one of the roles in the
rolesarray.getter/setter pair - description ↔ String?
-
Optional description for the role set
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- key ↔ String?
-
A unique key for the role set. Must start with 'role_set:' and contain only lowercase alphanumeric characters and underscores. If not provided, a key will be generated from the name.
getter/setter pair
- name ↔ String
-
The name of the new role set
getter/setter pair
-
roles
↔ List<
String> -
Array of role keys to include in the role set. Must contain at least one role and no more than 10 roles.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ CreateRoleSetRequestTypeEnum?
-
The type of the role set. "initial" role sets are the default for new organizations. Only one role set can be "initial" per instance.
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) → CreateRoleSetRequest? -
Returns a new CreateRoleSetRequest instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< CreateRoleSetRequest> -
mapFromJson(
dynamic json) → Map< String, CreateRoleSetRequest> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< CreateRoleSetRequest> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.