toValue method
Implementation
String toValue() {
switch (this) {
case TaskStatusType.starting:
return 'STARTING';
case TaskStatusType.running:
return 'RUNNING';
case TaskStatusType.stopping:
return 'STOPPING';
case TaskStatusType.stopped:
return 'STOPPED';
case TaskStatusType.succeeded:
return 'SUCCEEDED';
case TaskStatusType.failed:
return 'FAILED';
case TaskStatusType.timeout:
return 'TIMEOUT';
}
}