toCachePolicyQueryStringBehavior method

CachePolicyQueryStringBehavior toCachePolicyQueryStringBehavior()

Implementation

CachePolicyQueryStringBehavior toCachePolicyQueryStringBehavior() {
  switch (this) {
    case 'none':
      return CachePolicyQueryStringBehavior.none;
    case 'whitelist':
      return CachePolicyQueryStringBehavior.whitelist;
    case 'allExcept':
      return CachePolicyQueryStringBehavior.allExcept;
    case 'all':
      return CachePolicyQueryStringBehavior.all;
  }
  throw Exception(
      '$this is not known in enum CachePolicyQueryStringBehavior');
}