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

Method to_dict

src/licensedcode/models.py:437–473  ·  view source on GitHub ↗

Return a mapping of license data. Skip fields with empty values. Optionally include: - the "ignorable*" attributes if ``include_ignorables`` is True. - the text ``include_text`` is True. - the ``is_builtin`` flag if ``include_builtin`` is True.

(
        self,
        include_ignorables=True,
        include_text=False,
        include_builtin=True,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

__copy__Method · 0.95
dumpMethod · 0.95
process_codebaseMethod · 0.45
dumpMethod · 0.45
generate_detailsFunction · 0.45

Calls 1

_to_dictMethod · 0.95

Tested by

no test coverage detected