status property

StudyStatus get status

The status of this study, derived from deploymentStatus.

StudyStatus.DeploymentNotAvailable if no deployment status has been received yet.

Implementation

StudyStatus get status => switch (deploymentStatus?.status) {
  null => StudyStatus.DeploymentNotAvailable,
  StudyDeploymentStatusTypes.Invited => StudyStatus.DeploymentNotStarted,
  StudyDeploymentStatusTypes.DeployingDevices => StudyStatus.Deploying,
  StudyDeploymentStatusTypes.Running => StudyStatus.Running,
  StudyDeploymentStatusTypes.Stopped => StudyStatus.Stopped,
};