toDeviceState method

DeviceState toDeviceState()

Implementation

DeviceState toDeviceState() {
  switch (this) {
    case 'PENDING':
      return DeviceState.pending;
    case 'AVAILABLE':
      return DeviceState.available;
    case 'DELETING':
      return DeviceState.deleting;
    case 'UPDATING':
      return DeviceState.updating;
  }
  throw Exception('$this is not known in enum DeviceState');
}