convert

fun convert(metricType: Metrics): Metric

Converts enum value to subclass of Metric.