getStudyDeploymentId method
Resolve study deployment ID.
Returns studyDeploymentId
if not null. Otherwise returns the study
deployment ID specified in the study, if available.
Throws an error if study deployment id cannot be resolved.
Implementation
String getStudyDeploymentId(String? studyDeploymentId) {
if (studyDeploymentId != null) return studyDeploymentId;
if (study != null) return study!.studyDeploymentId;
throw CarpServiceException(
message: 'No study deployment ID specified for CAWS end point.');
}