toObjectiveStatus method
Implementation
ObjectiveStatus toObjectiveStatus() {
switch (this) {
case 'Succeeded':
return ObjectiveStatus.succeeded;
case 'Pending':
return ObjectiveStatus.pending;
case 'Failed':
return ObjectiveStatus.failed;
}
throw Exception('$this is not known in enum ObjectiveStatus');
}