Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'searchChatsOnServer', if (extra != null) '@extra': extra, 'query': query, 'limit': limit }; }