toJson method
Converts to JSON encodable Map
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'date': date,
'sender_chat': senderChat.toJson(),
'author_signature': authorSignature,
}..removeWhere(_nullFilter);
}