<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_array(self):
 """ Serializes this Game to a dictionary. :return: dictionary representation of this object. :rtype: dict """

        array = super(Game, self).to_array()
        array['title'] = u(self.title)  # py2: type unicode, py3: type str

        array['description'] = u(self.description)  # py2: type unicode, py3: type str

        array['photo'] = self._as_array(self.photo)  # type list of PhotoSize

        if self.text is not None:
            array['text'] = u(self.text)  # py2: type unicode, py3: type str

        if self.text_entities is not None:
            array['text_entities'] = self._as_array(self.text_entities)  # type list of MessageEntity

        if self.animation is not None:
            array['animation'] = self.animation.to_array()  # type Animation

        return array