serialize() {
    this.events.forEach(event => {
      event.serialize();
    });
    return Object.freeze(this);
  }
Serializes each {@link SerializableEvent} in our `events` prop;
makes this object read-only.
@returns {Readonly<SerializableWorkerResult>}