toTargetStatus method
Implementation
TargetStatus toTargetStatus() {
switch (this) {
case 'Pending':
return TargetStatus.pending;
case 'InProgress':
return TargetStatus.inProgress;
case 'Succeeded':
return TargetStatus.succeeded;
case 'Failed':
return TargetStatus.failed;
case 'Skipped':
return TargetStatus.skipped;
case 'Unknown':
return TargetStatus.unknown;
case 'Ready':
return TargetStatus.ready;
}
throw Exception('$this is not known in enum TargetStatus');
}