toMetricsStatus method

MetricsStatus toMetricsStatus()

Implementation

MetricsStatus toMetricsStatus() {
  switch (this) {
    case 'Enabled':
      return MetricsStatus.enabled;
    case 'Disabled':
      return MetricsStatus.disabled;
  }
  throw Exception('$this is not known in enum MetricsStatus');
}