toCustomMetricType method

CustomMetricType toCustomMetricType()

Implementation

CustomMetricType toCustomMetricType() {
  switch (this) {
    case 'string-list':
      return CustomMetricType.stringList;
    case 'ip-address-list':
      return CustomMetricType.ipAddressList;
    case 'number-list':
      return CustomMetricType.numberList;
    case 'number':
      return CustomMetricType.number;
  }
  throw Exception('$this is not known in enum CustomMetricType');
}