# Models

## User Model

The `UserModel` represents the data structure for user information in the application.

### Properties

* **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.

### Methods

#### `fromJson(Map<String, dynamic> json) -> UserModel`

Creates 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}) -> UserModel`

Creates a copy of the `UserModel` with optional modified properties.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flutfast.com/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
