src/pybel/manager/models.py
def to_json(self, include_id: bool = False) -> Mapping[str, str]:
        """Describe the namespaceEntry as dictionary of Namespace-Keyword and Name.

        :param include_id: If true, includes the model identifier
        """
        result = {
            NAMESPACE: self.namespace.keyword,
        }

        if self.name:
            result[NAME] = self.name

        if self.identifier:
            result[IDENTIFIER] = self.identifier

        if include_id:
            result['id'] = self.id

        return result
Describe the namespaceEntry as dictionary of Namespace-Keyword and Name.

        :param include_id: If true, includes the model identifier
        
Describe the namespaceEntry as dictionary of Namespace-Keyword and Name.
Describe the namespaceEntry as dictionary of Namespace - Keyword and Name .
def to_json(self, include_id: bool = False) -> Mapping[str, str]:
        result = {
            NAMESPACE: self.namespace.keyword,
        }
        if self.name:
            result[NAME] = self.name
        if self.identifier:
            result[IDENTIFIER] = self.identifier
        if include_id:
            result['id'] = self.id
        return result
def to_json ( self , include_id : bool = False ) -> Mapping [ str , str ] : result = { NAMESPACE : self . namespace . keyword , } if self . name : result [ NAME ] = self . name if self . identifier : result [ IDENTIFIER ] = self . identifier if include_id : result [ 'id' ] = self . id return result
Describe the namespaceEntry as dictionary of Namespace-Keyword and Name.
Describe the namespaceEntry as dictionary of Namespace - Keyword and Name .
"""Describe the namespaceEntry as dictionary of Namespace-Keyword and Name.

        :param include_id: If true, includes the model identifier
        """
self
include_id
bool
If true, includes the model identifier
If true includes the model identifier