toValue method
Implementation
String toValue() {
switch (this) {
case State.offline:
return 'OFFLINE';
case State.online:
return 'ONLINE';
case State.starting:
return 'STARTING';
case State.stopping:
return 'STOPPING';
case State.startFailed:
return 'START_FAILED';
case State.stopFailed:
return 'STOP_FAILED';
}
}