docs: def _from_dict(cls, _dict):
          """Initialize a WordHeadingDetection object from a json dictionary."""
          args = {}
          if 'fonts' in _dict:
              args['fonts'] = [
                  FontSetting._from_dict(x) for x in (_dict.get('fonts'))
              ]
          if 'styles' in _dict:
              args['styles'] = [
                  WordStyle._from_dict(x) for x in (_dict.get('styles'))
              ]
          return cls(**args)