toMatchOption method

MatchOption toMatchOption()

Implementation

MatchOption toMatchOption() {
  switch (this) {
    case 'EQUALS':
      return MatchOption.equals;
    case 'STARTS_WITH':
      return MatchOption.startsWith;
    case 'ENDS_WITH':
      return MatchOption.endsWith;
    case 'CONTAINS':
      return MatchOption.contains;
    case 'CASE_SENSITIVE':
      return MatchOption.caseSensitive;
    case 'CASE_INSENSITIVE':
      return MatchOption.caseInsensitive;
  }
  throw Exception('$this is not known in enum MatchOption');
}