toJson method
Convert a ChatUser into a json
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'id': id,
'profileImage': profileImage,
'firstName': firstName,
'lastName': lastName,
'customProperties': customProperties,
};
}