toCoreDeviceStatus method
Implementation
CoreDeviceStatus toCoreDeviceStatus() {
switch (this) {
case 'HEALTHY':
return CoreDeviceStatus.healthy;
case 'UNHEALTHY':
return CoreDeviceStatus.unhealthy;
}
throw Exception('$this is not known in enum CoreDeviceStatus');
}