NicePermission class

A permission entry: action on a specific resource.

Constructors

NicePermission({required String resource, required NiceRbacAction action})
const
NicePermission.fromJson(Map<String, dynamic> json)
factory
NicePermission.parse(String permission)
Parse from string format "resource.action" (e.g., "products.read").
factory

Properties

action NiceRbacAction
final
hashCode int
The hash code for this object.
no setteroverride
resource String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toPermissionString() String
toString() String
A string representation of this object.
inherited

Operators

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