toTrialComponentPrimaryStatus method
Implementation
TrialComponentPrimaryStatus toTrialComponentPrimaryStatus() {
switch (this) {
case 'InProgress':
return TrialComponentPrimaryStatus.inProgress;
case 'Completed':
return TrialComponentPrimaryStatus.completed;
case 'Failed':
return TrialComponentPrimaryStatus.failed;
case 'Stopping':
return TrialComponentPrimaryStatus.stopping;
case 'Stopped':
return TrialComponentPrimaryStatus.stopped;
}
throw Exception('$this is not known in enum TrialComponentPrimaryStatus');
}