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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_AccessInput value)?) → TResult?

Available on AccessInput, provided by the AccessInputPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_AccessInput value)?, {required TResult orElse()}) → TResult

Available on AccessInput, provided by the AccessInputPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

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