toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeviceAvailability.temporaryNotAvailable:
      return 'TEMPORARY_NOT_AVAILABLE';
    case DeviceAvailability.busy:
      return 'BUSY';
    case DeviceAvailability.available:
      return 'AVAILABLE';
    case DeviceAvailability.highlyAvailable:
      return 'HIGHLY_AVAILABLE';
  }
}