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?
brickhousePermissionTierId represents the Brickhouse permission tier ID for access level of an user.
getter/setter pairinherited
brickhouseRole BrickhouseUserRole?
brickhouseRole represents 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
email represents the user email.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
id represents the user ID. When is new, this value should be null.
getter/setter pairinherited
name String
name represents the user name.
getter/setter pairinherited
password String?
password default password if allowed by the form
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
username represents the username.
getter/setter pairinherited

Methods

map<TResult extends Object?>(TResult $default(_BHSUserInput value)) → TResult

Available on BHSUserInput, provided by the BHSUserInputPatterns extension

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

Available on BHSUserInput, provided by the BHSUserInputPatterns extension

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

Available on BHSUserInput, provided by the BHSUserInputPatterns extension

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

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

Operators

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