Resource class

Constructors

Resource({required ResourceTypeEnum? type, String? id, String? name, String? orgID, String? org})
Returns a new Resource instance.

Properties

hashCode int
The hash code for this object.
no setteroverride
id String?
If ID is set that is a permission for a specific resource. if it is not set it is a permission for all resources of that resource type.
getter/setter pair
name String?
Optional name of the resource if the resource has a name field.
getter/setter pair
org String?
Optional name of the organization of the organization with orgID.
getter/setter pair
orgID String?
If orgID is set that is a permission for all resources owned my that org. if it is not set it is a permission for all resources of that resource type.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ResourceTypeEnum?
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) Resource
Returns a new Resource instance and imports
listFromJson(dynamic json, {bool? emptyIsNull, bool? growable}) List<Resource>?
mapFromJson(dynamic json) Map<String, Resource?>
mapListFromJson(dynamic json, {bool? emptyIsNull, bool? growable}) Map<String, List<Resource?>?>