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