PermissionGrant class

Details about a permission granted to a user or group.

Constructors

PermissionGrant({PermissionHolder? holder, int? id, String? permission, String? self})
PermissionGrant.fromJson(Map<String, Object?> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
holder PermissionHolder?
The user or group being granted the permission. It consists of a type, a type-dependent parameter and a type-dependent value. See Holder object in Get all permission schemes for more information.
final
id int?
The ID of the permission granted details.
final
permission String?
The permission to grant. This permission can be one of the built-in permissions or a custom permission added by an app. See Built-in permissions in Get all permission schemes for more information about the built-in permissions. See the project permission and global permission module documentation for more information about custom permissions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self String?
The URL of the permission granted details.
final

Methods

copyWith({PermissionHolder? holder, int? id, String? permission, String? self}) PermissionGrant
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