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