original_docstring: Return a JSON representation of this class.
docstring: Return a JSON representation of this class.
docstring_tokens: Return a JSON representation of this class .
code: def export_to_json(self):
          """Return a JSON representation of this class."""
          if not self.source:
              raise ValueError("metadata has not been set")
          source_source = self.source.export_to_json()
          rep = {
              "boundary": self.boundary,
              "component": self.component,
              "threat": self.threat,
              "refs": self.refs,
              "source": source_source
          }
          return rep
code_tokens: def export_to_json ( self ) : if not self . source : raise ValueError ( "metadata has not been set" ) source_source = self . source . export_to_json ( ) rep = { "boundary" : self . boundary , "component" : self . component , "threat" : self . threat , "refs" : self . refs , "source" : source_source } return rep
short_docstring: Return a JSON representation of this class.
short_docstring_tokens: Return a JSON representation of this class .
comment: """Return a JSON representation of this class."""