UNPKG

channel3-sdk

Version:

The official TypeScript/JavaScript SDK for Channel3 AI Shopping API

58 lines 2 kB
/* tslint:disable */ /* eslint-disable */ /** * FastAPI * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AvailabilityStatusFromJSON, AvailabilityStatusToJSON, } from './AvailabilityStatus'; import { SearchFilterPriceFromJSON, SearchFilterPriceToJSON, } from './SearchFilterPrice'; /** * @export */ export const SearchFiltersGenderEnum = { male: 'male', female: 'female', unisex: 'unisex' }; /** * Check if a given object implements the SearchFilters interface. */ export function instanceOfSearchFilters(value) { return true; } export function SearchFiltersFromJSON(json) { return SearchFiltersFromJSONTyped(json, false); } export function SearchFiltersFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'brand_ids': json['brand_ids'] == null ? undefined : json['brand_ids'], 'gender': json['gender'] == null ? undefined : json['gender'], 'price': json['price'] == null ? undefined : SearchFilterPriceFromJSON(json['price']), 'availability': json['availability'] == null ? undefined : (json['availability'].map(AvailabilityStatusFromJSON)), }; } export function SearchFiltersToJSON(json) { return SearchFiltersToJSONTyped(json, false); } export function SearchFiltersToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'brand_ids': value['brand_ids'], 'gender': value['gender'], 'price': SearchFilterPriceToJSON(value['price']), 'availability': value['availability'] == null ? undefined : (value['availability'].map(AvailabilityStatusToJSON)), }; } //# sourceMappingURL=SearchFilters.js.map