code: def update(self, other, **kwargs):
          
          if other is None: return
  
          if not isinstance(other, dict):
              other = other.to_dict()
          self.__dict__.update(other, **kwargs)
docs: A dict-like update for Struct attributes.