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?
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
categoryId String?
categoryId represents 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>
customFields represents the list of custom fields.
getter/setter pairinherited
dynamicAvatar AvatarInput?
dynamicAvatar represents the user avatar.
getter/setter pairinherited
email String
email represents the user email.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
historicalDaysAllowed int
historicalDaysAllowed represents the number of days allowed to access historical data. This field is only for Mappit use.
getter/setter pairinherited
id String?
id represents the user ID. When is new, this value should be null.
getter/setter pairinherited
mappitAssetsIds List<String>
mappitAssetsIds represents the list of assets IDs. This field is only for Mappit use.
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
preferences UserPreferencesInput?
preferences represents the user preferences.
getter/setter pairinherited
referencesIds List<String>
referencesIds represents the list of references IDs.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdmCode String?
sdmCode represents the SDM code.
getter/setter pairinherited
tagsIds List<String>
tagsIds represents the list of tags IDs.
getter/setter pairinherited
username String
username represents the username.
getter/setter pairinherited

Methods

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

Available on UserInput, provided by the UserInputPatterns extension

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

Available on UserInput, provided by the UserInputPatterns extension

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

Available on UserInput, provided by the UserInputPatterns extension

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

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

Operators

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