User class

This class represents user information for Crisp chat.

Use this class to convert user data to JSON format for integration with the Crisp SDK.

Constructors

User({String? email, String? nickName, String? phone, String? avatar, Company? company})

Properties

avatar String?
The URL of the user's avatar image.
final
company Company?
The user's company information.
final
email String?
The user's email address.
final
hashCode int
The hash code for this object.
no setterinherited
nickName String?
The user's nickname.
final
phone String?
The user's phone number.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts user information to JSON format.
toString() String
A string representation of this object.
inherited

Operators

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