StudyDeployment constructor

StudyDeployment(
  1. StudyProtocol protocol, [
  2. String? studyDeploymentId
])

Create a new StudyDeployment based on a StudyProtocol. studyDeploymentId specify the study deployment id. If not specified, an UUID v1 id is generated.

Implementation

StudyDeployment(StudyProtocol protocol, [String? studyDeploymentId]) {
  _studyDeploymentId = studyDeploymentId ?? const Uuid().v1();
  _creationDate = DateTime.now();
  _status = StudyDeploymentStatus(studyDeploymentId: _studyDeploymentId);
  _protocol = protocol;
}