User constructor

User({
  1. required int id,
  2. required String institutionId,
  3. required String role,
  4. required int roleId,
  5. required String phoneNumber,
  6. String? fcmToken,
  7. DateTime? fcmTokenUpdatedAt,
  8. String? currentBlockName,
  9. int? currentBlockId,
  10. int? currentWardID,
  11. String? currentWardName,
  12. int? floor,
  13. required int hospitalId,
  14. required bool isApprover,
  15. required bool isSuperuser,
  16. required bool isResponder,
  17. 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,
});