convert

fun convert(metricType: Metrics): Metric

Converts enum value to sub-class of Metric.