toValue method
Implementation
String toValue() {
switch (this) {
case DeviceStatus.ready:
return 'READY';
case DeviceStatus.pending:
return 'PENDING';
case DeviceStatus.wasOffline:
return 'WAS_OFFLINE';
case DeviceStatus.deregistered:
return 'DEREGISTERED';
case DeviceStatus.failed:
return 'FAILED';
}
}