toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'message': message,
    'conversationName': conversationName,
    'senderName': senderName,
    'avatar': avatar,
  };
}