MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / to_dict

Method to_dict

src/packagedcode/models.py:318–328  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

316 setattr(self, key, value)
317
318 def to_dict(self, **kwargs):
319 mapping = super().to_dict(**kwargs)
320 mapping['purl'] = self.purl
321
322 if self.qualifiers:
323 mapping['qualifiers'] = normalize_qualifiers(
324 qualifiers=self.qualifiers,
325 encode=False,
326 )
327
328 return mapping
329
330
331@attr.attributes(slots=True)

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected