UserModule class

A model class representing a user module.

This class extends UsersBaseModel and includes additional fields such as address, phone, and type. It provides methods for JSON serialization and deserialization.

Inheritance

Constructors

UserModule({String? address = "", String? phone, int? type = 0, String? id, String? name, String? token = "", String? email})
Constructs a UserModule instance.
UserModule.formJson(Map<String, dynamic> json)
Constructs a UserModule instance from a JSON map.

Properties

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

Methods

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

Operators

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

Static Properties

typeKey ↔ String
getter/setter pair

Constants

addressKey → const String
phoneKey → const String