toValue method
Implementation
String toValue() {
switch (this) {
case TargetStatus.pending:
return 'Pending';
case TargetStatus.inProgress:
return 'InProgress';
case TargetStatus.succeeded:
return 'Succeeded';
case TargetStatus.failed:
return 'Failed';
case TargetStatus.skipped:
return 'Skipped';
case TargetStatus.unknown:
return 'Unknown';
case TargetStatus.ready:
return 'Ready';
}
}