ChatUser class Models


ChatUser({required String id, String? profileImage, Map<String, dynamic>? customProperties, String? firstName, String? lastName})
ChatUser.fromJson(Map<String, dynamic> jsonData)
Create a ChatUser instance from json data


customProperties Map<String, dynamic>?
A list of custom properties to extend the existing ones in case you need to store more things. Can be useful to extend existing features
getter/setter pair
firstName String?
First name of the user, if you only have the name as one string you can put the entire value in the firstName field
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
Id of the user
getter/setter pair
lastName String?
Last name of the user
getter/setter pair
profileImage String?
Profile image of the user
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


getFullName() String
Get the full name (firstName + lastName) of the user
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
Convert a ChatUser into a json
toString() String
A string representation of this object.


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