toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeviceState.pending:
      return 'PENDING';
    case DeviceState.available:
      return 'AVAILABLE';
    case DeviceState.deleting:
      return 'DELETING';
    case DeviceState.updating:
      return 'UPDATING';
  }
}