toHealthStatusFilter method

HealthStatusFilter toHealthStatusFilter()

Implementation

HealthStatusFilter toHealthStatusFilter() {
  switch (this) {
    case 'HEALTHY':
      return HealthStatusFilter.healthy;
    case 'UNHEALTHY':
      return HealthStatusFilter.unhealthy;
    case 'ALL':
      return HealthStatusFilter.all;
  }
  throw Exception('$this is not known in enum HealthStatusFilter');
}