toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Statistic.sampleCount:
      return 'SAMPLE_COUNT';
    case Statistic.average:
      return 'AVERAGE';
    case Statistic.sum:
      return 'SUM';
    case Statistic.minimum:
      return 'MINIMUM';
    case Statistic.maximum:
      return 'MAXIMUM';
  }
}