@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
19 lines • 864 B
JavaScript
import { ensure, isDefined } from 'tiny-types';
import { Artifact, CorrelationId, Name } from '../model/index.js';
import { Timestamp } from '../screenplay/index.js';
import { ArtifactGenerated } from './ArtifactGenerated.js';
/**
* @group Events
*/
export class ActivityRelatedArtifactGenerated extends ArtifactGenerated {
activityId;
static fromJSON(o) {
return new ActivityRelatedArtifactGenerated(CorrelationId.fromJSON(o.sceneId), CorrelationId.fromJSON(o.activityId), Name.fromJSON(o.name), Artifact.fromJSON(o.artifact), Timestamp.fromJSON(o.timestamp));
}
constructor(sceneId, activityId, name, artifact, timestamp) {
super(sceneId, name, artifact, timestamp);
this.activityId = activityId;
ensure('activityId', activityId, isDefined());
}
}
//# sourceMappingURL=ActivityRelatedArtifactGenerated.js.map