toComparisonOperator method

ComparisonOperator toComparisonOperator()

Implementation

ComparisonOperator toComparisonOperator() {
  switch (this) {
    case 'GreaterThanOrEqualToThreshold':
      return ComparisonOperator.greaterThanOrEqualToThreshold;
    case 'GreaterThanThreshold':
      return ComparisonOperator.greaterThanThreshold;
    case 'LessThanThreshold':
      return ComparisonOperator.lessThanThreshold;
    case 'LessThanOrEqualToThreshold':
      return ComparisonOperator.lessThanOrEqualToThreshold;
  }
  throw Exception('$this is not known in enum ComparisonOperator');
}