UserModel class

Model representing a user in the system.

Contains user identification, email, role, and organization association.

Constructors

UserModel.new({required String userId, required String email, required String role, required String organizationId})
Creates a UserModel with the given details.
UserModel.fromJson(Map<String, dynamic> json)
Creates a UserModel from a JSON map.
factory

Properties

email String
Email address of the user.
final
hashCode int
The hash code for this object.
no setterinherited
organizationId String
Identifier for the organization the user belongs to.
final
role String
Role or designation of the user (e.g., admin, doctor).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
Unique identifier for the user.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this UserModel instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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