User constructor
- required int id,
- required String institutionId,
- required String role,
- required int roleId,
- required String phoneNumber,
- String? fcmToken,
- DateTime? fcmTokenUpdatedAt,
- String? currentBlockName,
- int? currentBlockId,
- int? currentWardID,
- String? currentWardName,
- int? floor,
- required int hospitalId,
- required bool isApprover,
- required bool isSuperuser,
- required bool isResponder,
- required bool isCreator,
Creates a User instance.
All fields are required unless explicitly marked as nullable.
Implementation
User({
required this.id,
required this.institutionId,
required this.role,
required this.roleId,
required this.phoneNumber,
this.fcmToken,
this.fcmTokenUpdatedAt,
this.currentBlockName,
this.currentBlockId,
this.currentWardID,
this.currentWardName,
this.floor,
required this.hospitalId,
required this.isApprover,
required this.isSuperuser,
required this.isResponder,
required this.isCreator,
});