code: def set_as_object(self, value):
          
          self.clear()
          map = MapConverter.to_map(value)
          self.append(map)
docs: Sets a new value to map element
  
          :param value: a new element or map value.