AccessInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
- AccessInput({String? id, @Default.new(false) bool read, @Default.new(false) bool write, @Default.new(false) bool manage, String? objectId, String? userId, @JsonKey.new(unknownEnumValue: AccessModule.unknown) required AccessModule module})
-
factory
-
AccessInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $AccessInputCopyWith<
AccessInput> -
Create a copy of AccessInput
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
Represents the id of the access.
getter/setter pairinherited
- manage ↔ bool
-
Represents the manage permission.
getter/setter pairinherited
- module ↔ AccessModule
-
Represents the module of the access.
getter/setter pairinherited
- objectId ↔ String?
-
Represents the id of the object.
getter/setter pairinherited
- read ↔ bool
-
Represents the read permission.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userId ↔ String?
-
Represents the id of the user.
getter/setter pairinherited
- write ↔ bool
-
Represents the write permission.
getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_AccessInput value)) → TResult -
Available on AccessInput, provided by the AccessInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AccessInput value)?) → TResult? -
Available on AccessInput, provided by the AccessInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_AccessInput value)?, {required TResult orElse()}) → TResult -
Available on AccessInput, provided by the AccessInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, bool read, bool write, bool manage, String? objectId, String? userId, AccessModule module)?, {required TResult orElse()}) → TResult -
Available on AccessInput, provided by the AccessInputPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this AccessInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, bool read, bool write, bool manage, String? objectId, String? userId, AccessModule module)) → TResult -
Available on AccessInput, provided by the AccessInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, bool read, bool write, bool manage, String? objectId, String? userId, AccessModule module)?) → TResult? -
Available on AccessInput, provided by the AccessInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited