Models
The models which has been provided with the templates.
Last updated
The models which has been provided with the templates.
The UserModel represents the data structure for user information in the application.
username (String): The username of the user.
email (String): The email address of the user.
password (String): The hashed password of the user.
authToken (String): The authentication token associated with the user.
fromJson(Map<String, dynamic> json) -> UserModelCreates a UserModel instance from a JSON map.
toJson() -> Map<String, dynamic>Converts the UserModel instance to a JSON map.
copyWith({String? username, String? email, String? password, String? authToken}) -> UserModelCreates a copy of the UserModel with optional modified properties.
Last updated