def to_array(self):
        """
        Serializes this InlineQueryResultCachedVideo to a dictionary.

        :return: dictionary representation of this object.
        :rtype: dict
        """
        array = super(InlineQueryResultCachedVideo, self).to_array()
        array['type'] = u(self.type)  # py2: type unicode, py3: type str

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

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

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

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

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

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

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

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

        return array
def to_array ( self ) : array = super ( InlineQueryResultCachedVideo , self ) . to_array ( ) array [ 'type' ] = u ( self . type ) array [ 'id' ] = u ( self . id ) array [ 'video_file_id' ] = u ( self . video_file_id ) array [ 'title' ] = u ( self . title ) if self . description is not None : array [ 'description' ] = u ( self . description ) if self . caption is not None : array [ 'caption' ] = u ( self . caption ) if self . parse_mode is not None : array [ 'parse_mode' ] = u ( self . parse_mode ) if self . reply_markup is not None : array [ 'reply_markup' ] = self . reply_markup . to_array ( ) if self . input_message_content is not None : array [ 'input_message_content' ] = self . input_message_content . to_array ( ) return array
Serializes this InlineQueryResultCachedVideo to a dictionary.

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