Profile class
Represents a profile with user data.
Constructors
- Profile({String? email, String? image, bool? isAdminBlocked, bool? isBlocked, bool? isBlockedMe, bool? isGroupAdmin, bool? isGroupInOfflineMode, bool? isGroupProfile, bool? isItSavedContact, bool? isMuted, bool? isSelected, String? jid, String? mobileNumber, String? name, String? nickName, String? status, String? thumbImage})
- Constructs an instance of Profile.
-
Profile.fromJson(Map<
String, dynamic> json) -
Creates a Profile instance from a JSON map.
factory
Properties
- email ↔ String?
-
The email address of the user.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- image ↔ String?
-
The image URL of the user.
getter/setter pair
- isAdminBlocked ↔ bool?
-
Whether the user is blocked by an admin.
getter/setter pair
- isBlocked ↔ bool?
-
Whether the user is blocked.
getter/setter pair
- isBlockedMe ↔ bool?
-
Whether the user has blocked the current user.
getter/setter pair
- isGroupAdmin ↔ bool?
-
Whether the user is a group admin.
getter/setter pair
- isGroupInOfflineMode ↔ bool?
-
Whether the group is in offline mode.
getter/setter pair
- isGroupProfile ↔ bool?
-
Whether the profile is a group profile.
getter/setter pair
- isItSavedContact ↔ bool?
-
Whether the contact is saved.
getter/setter pair
- isMuted ↔ bool?
-
Whether the user is muted.
getter/setter pair
- isSelected ↔ bool?
-
Whether the user is selected.
getter/setter pair
- jid ↔ String?
-
The JID of the user.
getter/setter pair
- mobileNumber ↔ String?
-
The mobile number of the user.
getter/setter pair
- name ↔ String?
-
The name of the user.
getter/setter pair
- nickName ↔ String?
-
The nickname of the user.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String?
-
The status of the user.
getter/setter pair
- thumbImage ↔ String?
-
The thumbnail image URL 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 Profile instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited