toDeviceUpdateStatus method

DeviceUpdateStatus toDeviceUpdateStatus()

Implementation

DeviceUpdateStatus toDeviceUpdateStatus() {
  switch (this) {
    case 'UP_TO_DATE':
      return DeviceUpdateStatus.upToDate;
    case 'NOT_UP_TO_DATE':
      return DeviceUpdateStatus.notUpToDate;
  }
  throw Exception('$this is not known in enum DeviceUpdateStatus');
}