/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export */ export const ProductSortBy = { Relevance: 'relevance', MostPopular: 'mostPopular', HighestRating: 'highestRating', LowestRating: 'lowestRating', DescendingPrice: 'descendingPrice', AscendingPrice: 'ascendingPrice', DescendingName: 'descendingName', AscendingName: 'ascendingName', RecentlyAdded: 'recentlyAdded' } as const; export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy]; export function instanceOfProductSortBy(value: any): boolean { for (const key in ProductSortBy) { if (Object.prototype.hasOwnProperty.call(ProductSortBy, key)) { if (ProductSortBy[key as keyof typeof ProductSortBy] === value) { return true; } } } return false; } export function ProductSortByFromJSON(json: any): ProductSortBy { return ProductSortByFromJSONTyped(json, false); } export function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy { return json as ProductSortBy; } export function ProductSortByToJSON(value?: ProductSortBy | null): any { return value as any; } export function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy { return value as ProductSortBy; }