UserInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
UserInput({String? id, @Default.new('') String name, @Default.new('') String email, @Default.new('') String username, AvatarInput? dynamicAvatar, @Default.new([]) List<
String> referencesIds, String? categoryId, @Default.new([]) List<CustomField> customFields, @Default.new([]) List<String> tagsIds, @Default.new([]) List<String> mappitAssetsIds, @Default.new(1) int historicalDaysAllowed, String? brickhousePermissionTierId, @JsonKey.new(unknownEnumValue: BrickhouseUserRole.unknown) BrickhouseUserRole? brickhouseRole, String? sdmCode, String? password, UserPreferencesInput? preferences}) -
factory
-
UserInput.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 - categoryId ↔ String?
-
categoryIdrepresents the user category ID.getter/setter pairinherited -
copyWith
→ $UserInputCopyWith<
UserInput> -
Create a copy of UserInput
with the given fields replaced by the non-null parameter values.
no setterinherited
-
customFields
↔ List<
CustomField> -
customFieldsrepresents the list of custom fields.getter/setter pairinherited - dynamicAvatar ↔ AvatarInput?
-
dynamicAvatarrepresents the user avatar.getter/setter pairinherited - email ↔ String
-
emailrepresents the user email.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- historicalDaysAllowed ↔ int
-
historicalDaysAllowedrepresents the number of days allowed to access historical data. This field is only forMappituse.getter/setter pairinherited - id ↔ String?
-
idrepresents the user ID. When is new, this value should be null.getter/setter pairinherited -
mappitAssetsIds
↔ List<
String> -
mappitAssetsIdsrepresents the list of assets IDs. This field is only forMappituse.getter/setter pairinherited - name ↔ String
-
namerepresents the user name.getter/setter pairinherited - password ↔ String?
-
passworddefault password if allowed by the formgetter/setter pairinherited - preferences ↔ UserPreferencesInput?
-
preferencesrepresents the user preferences.getter/setter pairinherited -
referencesIds
↔ List<
String> -
referencesIdsrepresents the list of references IDs.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdmCode ↔ String?
-
sdmCoderepresents the SDM code.getter/setter pairinherited -
tagsIdsrepresents the list of tags IDs.getter/setter pairinherited - username ↔ String
-
usernamerepresents the username.getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_UserInput value)) → TResult -
Available on UserInput, provided by the UserInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_UserInput value)?) → TResult? -
Available on UserInput, provided by the UserInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_UserInput value)?, {required TResult orElse()}) → TResult -
Available on UserInput, provided by the UserInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String name, String email, String username, AvatarInput? dynamicAvatar, List< String> referencesIds, String? categoryId, List<CustomField> customFields, List<String> tagsIds, List<String> mappitAssetsIds, int historicalDaysAllowed, String? brickhousePermissionTierId, BrickhouseUserRole? brickhouseRole, String? sdmCode, String? password, UserPreferencesInput? preferences)?, {required TResult orElse()}) → TResult -
Available on UserInput, provided by the UserInputPatterns 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 UserInput 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, AvatarInput? dynamicAvatar, List< String> referencesIds, String? categoryId, List<CustomField> customFields, List<String> tagsIds, List<String> mappitAssetsIds, int historicalDaysAllowed, String? brickhousePermissionTierId, BrickhouseUserRole? brickhouseRole, String? sdmCode, String? password, UserPreferencesInput? preferences)) → TResult -
Available on UserInput, provided by the UserInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String name, String email, String username, AvatarInput? dynamicAvatar, List< String> referencesIds, String? categoryId, List<CustomField> customFields, List<String> tagsIds, List<String> mappitAssetsIds, int historicalDaysAllowed, String? brickhousePermissionTierId, BrickhouseUserRole? brickhouseRole, String? sdmCode, String? password, UserPreferencesInput? preferences)?) → TResult? -
Available on UserInput, provided by the UserInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited