⚡
FlutFast Guide
  • ⚡ Getting Started
    • Flutter Basics (For Beginners)
  • Components
    • Appbars
    • Buttons
    • Page
    • Inputs
    • Typography
    • Navbars
    • Dividers
    • End Drawers
  • Firebase
  • Models
  • Services
  • Shared Preferences
  • Flutter Bloc State Management
  • In App Purchases
  • Flutter Native Splash
  • Backend
    • Getting Started
    • Working with Open AI
    • Supabase Connection (in works)
  • Analytics (Mixpanel)
  • Github CI/CD
  • SendGrid
  • RevenueCat Integration
Powered by GitBook
On this page
  • User Model
  • Properties
  • Methods

Was this helpful?

Models

The models which has been provided with the templates.

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.

PreviousFirebaseNextServices

Last updated 1 year ago

Was this helpful?