toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ComparisonOperator.greaterThanOrEqualToThreshold:
      return 'GreaterThanOrEqualToThreshold';
    case ComparisonOperator.greaterThanThreshold:
      return 'GreaterThanThreshold';
    case ComparisonOperator.lessThanThreshold:
      return 'LessThanThreshold';
    case ComparisonOperator.lessThanOrEqualToThreshold:
      return 'LessThanOrEqualToThreshold';
    case ComparisonOperator.lessThanLowerOrGreaterThanUpperThreshold:
      return 'LessThanLowerOrGreaterThanUpperThreshold';
    case ComparisonOperator.lessThanLowerThreshold:
      return 'LessThanLowerThreshold';
    case ComparisonOperator.greaterThanUpperThreshold:
      return 'GreaterThanUpperThreshold';
  }
}