class_docstr: A base class for Bokeh properties with simple get/set and serialization
  behavior.
class_docstr_tok: ["A","base","class","for","Bokeh","properties","with","simple","get\/set","and","serialization","behavior","."]
docstr: Sets the value of this property from a JSON value.
  
  Args:
      obj: (HasProps) : instance to set the property value on
  
      json: (JSON-value) : value to set to the attribute to
  
      models (dict or None, optional) :
          Mapping of model ids to models (default: None)
  
          This is needed in cases where the attributes to update also
          have values that have references.
  
      setter (ClientSession or ServerSession or None, optional) :
          This is used to prevent "boomerang" updates to Bokeh apps.
          (default: None)
  
          In the context of a Bokeh server application, incoming updates
          to properties will be annotated with the session that is
          doing the updating. This value is propagated through any
          subsequent change notifications that the update triggers.
          The session can compare the event setter to itself, and
          suppress any updates that originate from itself.
  
  Returns:
      None
code: def set_from_json(
      self, obj: HasProps, value: Any, *, setter: Setter | None = None
  ):
      """Sets the value of this property from a JSON value.
  
      Args:
          obj: (HasProps) : instance to set the property value on
  
          json: (JSON-value) : value to set to the attribute to
  
          models (dict or None, optional) :
              Mapping of model ids to models (default: None)
  
              This is needed in cases where the attributes to update also
              have values that have references.
  
          setter (ClientSession or ServerSession or None, optional) :
              This is used to prevent "boomerang" updates to Bokeh apps.
              (default: None)
  
              In the context of a Bokeh server application, incoming updates
              to properties will be annotated with the session that is
              doing the updating. This value is propagated through any
              subsequent change notifications that the update triggers.
              The session can compare the event setter to itself, and
              suppress any updates that originate from itself.
  
      Returns:
          None
  
      """
      value = self.property.prepare_value(obj, self.name, value)
      old = self._get(obj)
      self._set(obj, old, value, setter=setter)
  
imports: from __future__ import annotations
  import logging
  from copy import copy
  from types import FunctionType
  from typing import TYPE_CHECKING, Any, Callable, Generic, TypeVar
  from ...util.deprecation import deprecated
  from .singletons import Undefined
  from .wrappers import PropertyValueColumnData, PropertyValueContainer
label_desc: Use image node_id 9 for calling the PropertyDescriptor obj's underlying member method code with example usage: obj.set_from_json(obj, value) without return types