toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'id': id,
'user_id': userId,
'user_chat_id': userChatId,
'date': date,
'rights': rights?.toJson(),
'is_enabled': isEnabled,
'@type': constructor,
};