toValue method
Implementation
String toValue() {
switch (this) {
case StateValue.ok:
return 'OK';
case StateValue.alarm:
return 'ALARM';
case StateValue.insufficientData:
return 'INSUFFICIENT_DATA';
}
}
String toValue() {
switch (this) {
case StateValue.ok:
return 'OK';
case StateValue.alarm:
return 'ALARM';
case StateValue.insufficientData:
return 'INSUFFICIENT_DATA';
}
}