toThresholdComparator method

ThresholdComparator toThresholdComparator()

Implementation

ThresholdComparator toThresholdComparator() {
  switch (this) {
    case 'GREATER_THAN':
      return ThresholdComparator.greaterThan;
    case 'GREATER_THAN_OR_EQUAL_TO':
      return ThresholdComparator.greaterThanOrEqualTo;
  }
  throw Exception('$this is not known in enum ThresholdComparator');
}