BHSUserInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
- BHSUserInput({String? id, @Default.new('') String name, @Default.new('') String email, @Default.new('') String username, String? brickhousePermissionTierId, @JsonKey.new(unknownEnumValue: BrickhouseUserRole.unknown) BrickhouseUserRole? brickhouseRole, String? password})
-
factory
-
BHSUserInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
- brickhousePermissionTierId ↔ String?
-
brickhousePermissionTierIdrepresents the Brickhouse permission tier ID for access level of an user.getter/setter pairinherited - brickhouseRole ↔ BrickhouseUserRole?
-
brickhouseRolerepresents the Brickhouse user role.getter/setter pairinherited -
copyWith
→ $BHSUserInputCopyWith<
BHSUserInput> -
Create a copy of BHSUserInput
with the given fields replaced by the non-null parameter values.
no setterinherited
- email ↔ String
-
emailrepresents the user email.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
idrepresents the user ID. When is new, this value should be null.getter/setter pairinherited - name ↔ String
-
namerepresents the user name.getter/setter pairinherited - password ↔ String?
-
passworddefault password if allowed by the formgetter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- username ↔ String
-
usernamerepresents the username.getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_BHSUserInput value)) → TResult -
Available on BHSUserInput, provided by the BHSUserInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_BHSUserInput value)?) → TResult? -
Available on BHSUserInput, provided by the BHSUserInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_BHSUserInput value)?, {required TResult orElse()}) → TResult -
Available on BHSUserInput, provided by the BHSUserInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String name, String email, String username, String? brickhousePermissionTierId, BrickhouseUserRole? brickhouseRole, String? password)?, {required TResult orElse()}) → TResult -
Available on BHSUserInput, provided by the BHSUserInputPatterns 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 BHSUserInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, String name, String email, String username, String? brickhousePermissionTierId, BrickhouseUserRole? brickhouseRole, String? password)) → TResult -
Available on BHSUserInput, provided by the BHSUserInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String name, String email, String username, String? brickhousePermissionTierId, BrickhouseUserRole? brickhouseRole, String? password)?) → TResult? -
Available on BHSUserInput, provided by the BHSUserInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited