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

        :return: dictionary representation of this object.
        :rtype: dict
        """
        array = super(InlineQueryResultVenue, 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['latitude'] = float(self.latitude)  # type float
        array['longitude'] = float(self.longitude)  # type float
        array['title'] = u(self.title)  # py2: type unicode, py3: type str

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

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

        if self.foursquare_type is not None:
            array['foursquare_type'] = u(self.foursquare_type)  # 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

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

        if self.thumb_width is not None:
            array['thumb_width'] = int(self.thumb_width)  # type int
        if self.thumb_height is not None:
            array['thumb_height'] = int(self.thumb_height)  # type int
        return array
def to_array ( self ) : array = super ( InlineQueryResultVenue , self ) . to_array ( ) array [ 'type' ] = u ( self . type ) array [ 'id' ] = u ( self . id ) array [ 'latitude' ] = float ( self . latitude ) array [ 'longitude' ] = float ( self . longitude ) array [ 'title' ] = u ( self . title ) array [ 'address' ] = u ( self . address ) if self . foursquare_id is not None : array [ 'foursquare_id' ] = u ( self . foursquare_id ) if self . foursquare_type is not None : array [ 'foursquare_type' ] = u ( self . foursquare_type ) 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 ( ) if self . thumb_url is not None : array [ 'thumb_url' ] = u ( self . thumb_url ) if self . thumb_width is not None : array [ 'thumb_width' ] = int ( self . thumb_width ) if self . thumb_height is not None : array [ 'thumb_height' ] = int ( self . thumb_height ) return array
Serializes this InlineQueryResultVenue to a dictionary.

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