parseSeoCollectionSort function

SeoCollectionSort? parseSeoCollectionSort(
  1. String value
)

Parses a package-owned sort marker.

Implementation

SeoCollectionSort? parseSeoCollectionSort(String value) => switch (value) {
      'newest' => SeoCollectionSort.newest,
      'oldest' => SeoCollectionSort.oldest,
      'title' => SeoCollectionSort.title,
      _ => null,
    };