toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case MatchFieldType.uri:
      return 'URI';
    case MatchFieldType.queryString:
      return 'QUERY_STRING';
    case MatchFieldType.header:
      return 'HEADER';
    case MatchFieldType.method:
      return 'METHOD';
    case MatchFieldType.body:
      return 'BODY';
    case MatchFieldType.singleQueryArg:
      return 'SINGLE_QUERY_ARG';
    case MatchFieldType.allQueryArgs:
      return 'ALL_QUERY_ARGS';
  }
}