toValue method
Implementation
String toValue() {
switch (this) {
case State.draft:
return 'DRAFT';
case State.active:
return 'ACTIVE';
case State.completed:
return 'COMPLETED';
case State.cancelled:
return 'CANCELLED';
case State.closed:
return 'CLOSED';
}
}