code: function (data) {
      if (data instanceof AggregateModel) {
        this.attributes = data.toJSON();
      } else {
        this.attributes = _.cloneDeep(data || {});
      }
  
      this.attributes.id = this.id;
      this.attributes._destroyed = this.attributes._destroyed || false;
      this.attributes._revision = this.attributes._revision || 0;
    }
docs: Resets the attributes for the aggregate.