toJson method
Implementation
Map<String, Object?> toJson({List<String> excepts = const []}) {
return {
if (!excepts.contains("id")) "id": id,
"chatId": chatId,
"messageId": messageId,
"createdAt": createdAt?.toIso8601String(),
"reference": reference,
};
}