code: function update(annotationObject, changeSet) {
    const updatedAnnotation = Object.assign({}, annotationObject, changeSet);
  
    let changeDetected = false;
    Object.keys(updatedAnnotation).forEach((key) => {
      if (updatedAnnotation[key] !== annotationObject[key]) {
        changeDetected = true;
      }
    });
  
    if (changeDetected) {
      generation += 1;
      updatedAnnotation.generation = generation;
    }
  
    return updatedAnnotation;
  }
docs: ----------------------------------------------------------------------------