code: def to_plotly_json(self):
      # Add normal properties
      props = {
          p: getattr(self, p)
          for p in self._prop_names  # pylint: disable=no-member
          if hasattr(self, p)
      }
      # Add the wildcard properties data-* and aria-*
      props.update(
          {
              k: getattr(self, k)
              for k in self.__dict__
              if any(
                  k.startswith(w)
                  # pylint:disable=no-member
                  for w in self._valid_wildcard_attributes
              )
          }
      )
      as_json = {
          "props": props,
          "type": self._type,  # pylint: disable=no-member
          "namespace": self._namespace,  # pylint: disable=no-member
      }
  
      return as_json
  
imports: import abc
  import collections
  import inspect
  import sys
  import uuid
  import random
  from .._utils import patch_collections_abc, stringify_id, OrderedSet
label_desc: Use image node_id 3 for calling the Component obj's underlying member method code with example usage: obj.to_plotly_json() and returns: as_json