toValue method
Implementation
String toValue() {
switch (this) {
case CloseStatus.completed:
return 'COMPLETED';
case CloseStatus.failed:
return 'FAILED';
case CloseStatus.canceled:
return 'CANCELED';
case CloseStatus.terminated:
return 'TERMINATED';
case CloseStatus.continuedAsNew:
return 'CONTINUED_AS_NEW';
case CloseStatus.timedOut:
return 'TIMED_OUT';
}
}