RoleSetItem class
Constructors
- RoleSetItem({required RoleSetItemObjectEnum object, required String id, required String name, required String key, required String? description, int? membersCount, bool? hasMembers, required int createdAt, required int updatedAt})
- Returns a new RoleSetItem instance.
Properties
- createdAt ↔ int
-
Unix timestamp of role creation
getter/setter pair
- description ↔ String?
-
Optional description of the role
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasMembers ↔ bool?
-
Whether this role has any members assigned within the role set
getter/setter pair
- id ↔ String
-
The unique identifier of the role
getter/setter pair
- key ↔ String
-
The key of the role (e.g., "org:admin", "org:member")
getter/setter pair
- membersCount ↔ int?
-
The number of members assigned to this role within the role set
getter/setter pair
- name ↔ String
-
The name of the role
getter/setter pair
- object ↔ RoleSetItemObjectEnum
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt ↔ int
-
Unix timestamp of last role 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) → RoleSetItem? -
Returns a new RoleSetItem instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< RoleSetItem> -
mapFromJson(
dynamic json) → Map< String, RoleSetItem> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< RoleSetItem> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.