UsersBaseModel class

A base model class for user data.

This class implements IuserModel and provides basic fields such as uid, name, email, and token. It also includes methods for JSON serialization and deserialization.

Implemented types
Implementers

Constructors

UsersBaseModel({String? name, String? uid, String? email, String? token})
Constructs a UsersBaseModel instance.
UsersBaseModel.formJson(Map<String, dynamic> json)
Constructs a UsersBaseModel instance from a JSON map.
UsersBaseModel.formJsonWithMetaData(Map<String, dynamic> json)

Properties

createdAt ↔ DateTime?
getter/setter pairoverride
email ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
The unique identifier for the data entity.
getter/setter pairoverride
isArchived ↔ bool?
getter/setter pairoverride
map ↔ Map<String, dynamic>?
A map to hold additional data for the model.
getter/setter pairoverride
name ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token ↔ String?
getter/setter pair
uid ↔ String?
getter/setter pair
uMap ↔ Map<String, dynamic>
getter/setter pairoverride
updatedAt ↔ DateTime?
getter/setter pairoverride

Methods

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

Operators

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

Constants

emailKey → const String
idKey → const String
nameKey → const String
tokenKey → const String