UserPermission class

Details of a permission and its availability to a user.

Constructors

UserPermission({bool? deprecatedKey, String? description, bool? havePermission, String? id, String? key, String? name, UserPermissionType? type})
UserPermission.fromJson(Map<String, Object?> json)
factory

Properties

deprecatedKey bool
Indicate whether the permission key is deprecated. Note that deprecated keys cannot be used in the permissions parameter of Get my permissions. Deprecated keys are not returned by Get all permissions.
final
description String?
The description of the permission.
final
hashCode int
The hash code for this object.
no setterinherited
havePermission bool
Whether the permission is available to the user in the queried context.
final
id String?
The ID of the permission. Either id or key must be specified. Use Get all permissions to get the list of permissions.
final
key String?
The key of the permission. Either id or key must be specified. Use Get all permissions to get the list of permissions.
final
name String?
The name of the permission.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type UserPermissionType?
The type of the permission.
final

Methods

copyWith({bool? deprecatedKey, String? description, bool? havePermission, String? id, String? key, String? name, UserPermissionType? type}) UserPermission
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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