UsersDBModel class

A model class representing a user in the database.

This class stores the user's information such as their ID, name, and hashed password. It provides methods to convert the object into a map for database operations and overrides the toString method to give a string representation of the object.

Constructors

UsersDBModel({dynamic ID, required String name, required String hashedPassword})
Constructor for UsersDBModel.

Properties

hashCode int
The hash code for this object.
no setterinherited
hashedPassword String
The user's hashed password.
final
ID int?
The user's unique identifier in the database. This field is nullable.
getter/setter pair
name String
The user's name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the object into a map that can be used in database operations.
toString() String
Returns a string representation of the object.
override

Operators

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