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