RegisterModel class

Represents the model for registering a user.

This class encapsulates the data related to a user registration, including the user's JID, registration data, a flag indicating if the user is new, and a message.

Properties: userJid - The Jabber ID (JID) of the user. data - The registration data as a Data object. isNewUser - A boolean indicating if the user is new. message - A message related to the registration process.

Constructors: RegisterModel - Initializes a new instance of the RegisterModel class with optional parameters for user JID, registration data, new user flag, and message.

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 map into a RegisterModel object.
factory

Properties

data Data?
The registration data as a Data object.
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 related to the registration process.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userJid String?
The Jabber ID (JID) 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 object into a map.
toString() String
A string representation of this object.
inherited

Operators

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