code: def toJson(self) -> Dict:
      result_dict = dict()
      result_dict["isPartName"] = self.is_part_name
      result_dict["isDisambiguation"] = self.is_disambiguation
  
      if self.disambiguation_links is not None:
          result_dict["disambiguationLinks"] = list(
              self.disambiguation_links
          )
          result_dict["disambiguationLinksNorm"] = list(
              self.disambiguation_links_norm
          )
      if self.categories is not None:
          result_dict["categories"] = list(self.categories)
          result_dict["categoriesNorm"] = list(self.categories_norm)
      if self.aliases is not None:
          result_dict["aliases"] = list(self.aliases)
      if self.title_parenthesis is not None:
          result_dict["titleParenthesis"] = list(self.title_parenthesis)
          result_dict["titleParenthesisNorm"] = list(
              self.title_parenthesis_norm
          )
      if self.be_comp_norm is not None:
          result_dict["beCompRelations"] = list(self.be_comp)
          result_dict["beCompRelationsNorm"] = list(self.be_comp_norm)
  
      return result_dict
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/data_types/wiki/wikipedia_page_extracted_relations.py
imports: import re
  import string
  from typing import Set, Dict
  from nlp_architect.utils.string_utils import StringUtils
label_desc: Use image node_id 4 for calling the WikipediaPageExtractedRelations obj's underlying member method code with example usage: obj.toJson() and returns: result_dict