RegisterModel class
A model representing the registration details of a user.
This class holds the details necessary for registering a user, including their JID, data, new user status, and a message.
Parameters: userJid - The Jabber ID of the user. data - Additional data associated with the user. isNewUser - A boolean indicating if the user is new. message - A message associated with the registration.
Constructors
- RegisterModel({String? userJid, Data? data, bool? isNewUser, String? message})
- Initializes a new instance of the RegisterModel class.
-
RegisterModel.fromJson(Map<
String, dynamic> json) -
Converts a JSON object into a RegisterModel instance.
factory
Properties
- data ↔ Data?
-
Additional data associated with the user.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNewUser ↔ bool?
-
A boolean indicating if the user is new.
getter/setter pair
- message ↔ String?
-
A message associated with the registration.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userJid ↔ String?
-
The Jabber ID of the user.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a RegisterModel instance into a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited