toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'id': id,
'user_id': userId,
'user_chat_id': userChatId,
'date': date,
'rights': rights?.toJson(),
'is_enabled': isEnabled,
};