class_docstr: Styling class containing colors for the css generation
docstr: Convert instance to a serializable mapping.
docstr_tok: ["Convert","instance","to","a","serializable","mapping","."]
code: def to_dict(self):
      """Convert instance to a serializable mapping."""
      config = {}
      for attr in dir(self):
          if not attr.startswith("_"):
              value = getattr(self, attr)
              if not hasattr(value, "__call__"):
                  config[attr] = value
      return config
  
imports: from __future__ import division
  from itertools import chain
  from pygal import colors
  from pygal.colors import darken, is_foreground_light, lighten
label_desc: Use image node_id 3 for calling the Style obj's underlying member method code with example usage: obj.to_dict() and returns: config