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
def to_array ( self ) : array = super ( Game , self ) . to_array ( ) array [ 'title' ] = u ( self . title ) array [ 'description' ] = u ( self . description ) array [ 'photo' ] = self . _as_array ( self . photo ) if self . text is not None : array [ 'text' ] = u ( self . text ) if self . text_entities is not None : array [ 'text_entities' ] = self . _as_array ( self . text_entities ) if self . animation is not None : array [ 'animation' ] = self . animation . to_array ( ) return array
Serializes this Game to a dictionary.

        :return: dictionary representation of this object.
        :rtype: dict