User class abstract

Available extensions
Annotations
  • @freezed

Constructors

User({String? id, String? firstName, String? lastName, String? email, int? statusId, int? departmentId, int? businessUnitId, int? positionId, String? creatorId, DateTime? createdDate, String? userRoleId, double? latitude, double? longitude, String? password, List<String>? roleNames, int? userStatus, Department? department, BusinessUnit? businessUnit, Position? position, Status? status, List<UserRole>? userRoles, List<Depot>? depots, List<Status>? statuses})
const
factory
User.fromJson(Map<String, dynamic> json)
factory

Properties

businessUnit → BusinessUnit?
no setterinherited
businessUnitId → int?
no setterinherited
copyWith → $UserCopyWith<User>
Create a copy of User with the given fields replaced by the non-null parameter values.
no setterinherited
createdDate → DateTime?
no setterinherited
creatorId → String?
no setterinherited
department → Department?
no setterinherited
departmentId → int?
no setterinherited
depots → List<Depot>?
no setterinherited
email → String?
no setterinherited
firstName → String?
no setterinherited
fullName → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String?
no setterinherited
isAdmin → bool
no setter
isAssembled → bool
no setter
isBuyBack → bool
no setter
isCashSale → bool
no setter
isDamaged → bool
no setter
isDealer → bool
no setter
isDeposited → bool
no setter
isDispatched → bool
no setter
isEnrollment → bool
no setter
isHOInboundChecker → bool
no setter
isInAssembly → bool
no setter
isInOutlet → bool
no setter
isInReconCenter → bool
no setter
isInStagingArea → bool
no setter
isInstallmentSale → bool
no setter
isInWarehouse → bool
no setter
isPreAssembly → bool
no setter
isQCFunctionalCompleted → bool
no setter
isQCFunctionalDamaged → bool
no setter
isQCPassed → bool
no setter
isQCVisualCompleted → bool
no setter
isQCVisualDamaged → bool
no setter
isRepossessed → bool
no setter
isScrapped → bool
no setter
lastName → String?
no setterinherited
latitude → double?
no setterinherited
longitude → double?
no setterinherited
password → String?
no setterinherited
position → Position?
no setterinherited
positionId → int?
no setterinherited
roleNames → List<String>?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → Status?
no setterinherited
statuses → List<Status>?
no setterinherited
statusId → int?
no setterinherited
userRoleId → String?
no setterinherited
userRoles → List<UserRole>?
no setterinherited
userStatus → int?
no setterinherited

Methods

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

Available on User, provided by the UserPatterns extension

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

Available on User, provided by the UserPatterns extension

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

Available on User, provided by the UserPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? id, String? firstName, String? lastName, String? email, int? statusId, int? departmentId, int? businessUnitId, int? positionId, String? creatorId, DateTime? createdDate, String? userRoleId, double? latitude, double? longitude, String? password, List<String>? roleNames, int? userStatus, Department? department, BusinessUnit? businessUnit, Position? position, Status? status, List<UserRole>? userRoles, List<Depot>? depots, List<Status>? statuses)?, {required TResult orElse()}) → TResult

Available on User, provided by the UserPatterns 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 User to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? id, String? firstName, String? lastName, String? email, int? statusId, int? departmentId, int? businessUnitId, int? positionId, String? creatorId, DateTime? createdDate, String? userRoleId, double? latitude, double? longitude, String? password, List<String>? roleNames, int? userStatus, Department? department, BusinessUnit? businessUnit, Position? position, Status? status, List<UserRole>? userRoles, List<Depot>? depots, List<Status>? statuses)) → TResult

Available on User, provided by the UserPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? id, String? firstName, String? lastName, String? email, int? statusId, int? departmentId, int? businessUnitId, int? positionId, String? creatorId, DateTime? createdDate, String? userRoleId, double? latitude, double? longitude, String? password, List<String>? roleNames, int? userStatus, Department? department, BusinessUnit? businessUnit, Position? position, Status? status, List<UserRole>? userRoles, List<Depot>? depots, List<Status>? statuses)?) → TResult?

Available on User, provided by the UserPatterns extension

A variant of when that fallback to returning null

Operators

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