''

def as_dict(self):

    style = self.style
    output = Storage()
    if (not style):
        return output
    if hasattr(style, 'marker'):
        output.marker = style.marker.as_json_dict()
    opacity = style.opacity
    if (opacity and (opacity not in (1, 1.0))):
        output.opacity = style.opacity
    if style.popup_format:
        output.popup_format = style.popup_format
    if style.url_format:
        output.url_format = style.url_format
    cluster_distance = style.cluster_distance
    if ((cluster_distance is not None) and (cluster_distance != CLUSTER_DISTANCE)):
        output.cluster_distance = cluster_distance
    cluster_threshold = style.cluster_threshold
    if ((cluster_threshold is not None) and (cluster_threshold != CLUSTER_THRESHOLD)):
        output.cluster_threshold = cluster_threshold
    if style.style:
        if isinstance(style.style, basestring):
            try:
                style.style = json.loads(style.style)
            except:
                current.log.error(('Unable    to    decode    Style:    %s' % style.style))
                style.style = None
        output.style = style.style
    return output
