User class

Annotations
  • @freezed

Constructors

User.new({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
isCashSale bool
no setter
isDealer 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
isInstallmentSale bool
no setter
isInWarehouse 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

mapToRequest() Map<String, dynamic>
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

Operators

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