channel3-sdk
Version:
The official TypeScript/JavaScript SDK for Channel3 AI Shopping API
66 lines • 2.4 kB
JavaScript
;
/* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SearchFiltersGenderEnum = void 0;
exports.instanceOfSearchFilters = instanceOfSearchFilters;
exports.SearchFiltersFromJSON = SearchFiltersFromJSON;
exports.SearchFiltersFromJSONTyped = SearchFiltersFromJSONTyped;
exports.SearchFiltersToJSON = SearchFiltersToJSON;
exports.SearchFiltersToJSONTyped = SearchFiltersToJSONTyped;
const AvailabilityStatus_1 = require("./AvailabilityStatus");
const SearchFilterPrice_1 = require("./SearchFilterPrice");
/**
* @export
*/
exports.SearchFiltersGenderEnum = {
male: 'male',
female: 'female',
unisex: 'unisex'
};
/**
* Check if a given object implements the SearchFilters interface.
*/
function instanceOfSearchFilters(value) {
return true;
}
function SearchFiltersFromJSON(json) {
return SearchFiltersFromJSONTyped(json, false);
}
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 : (0, SearchFilterPrice_1.SearchFilterPriceFromJSON)(json['price']),
'availability': json['availability'] == null ? undefined : (json['availability'].map(AvailabilityStatus_1.AvailabilityStatusFromJSON)),
};
}
function SearchFiltersToJSON(json) {
return SearchFiltersToJSONTyped(json, false);
}
function SearchFiltersToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'brand_ids': value['brand_ids'],
'gender': value['gender'],
'price': (0, SearchFilterPrice_1.SearchFilterPriceToJSON)(value['price']),
'availability': value['availability'] == null ? undefined : (value['availability'].map(AvailabilityStatus_1.AvailabilityStatusToJSON)),
};
}
//# sourceMappingURL=SearchFilters.js.map