channel3-sdk
Version:
The official TypeScript/JavaScript SDK for Channel3 AI Shopping API
56 lines • 2.1 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.
*/
import { SearchFiltersFromJSON, SearchFiltersToJSON, } from './SearchFilters';
import { SearchConfigFromJSON, SearchConfigToJSON, } from './SearchConfig';
/**
* Check if a given object implements the SearchRequest interface.
*/
export function instanceOfSearchRequest(value) {
return true;
}
export function SearchRequestFromJSON(json) {
return SearchRequestFromJSONTyped(json, false);
}
export function SearchRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'query': json['query'] == null ? undefined : json['query'],
'image_url': json['image_url'] == null ? undefined : json['image_url'],
'base64_image': json['base64_image'] == null ? undefined : json['base64_image'],
'limit': json['limit'] == null ? undefined : json['limit'],
'filters': json['filters'] == null ? undefined : SearchFiltersFromJSON(json['filters']),
'config': json['config'] == null ? undefined : SearchConfigFromJSON(json['config']),
'context': json['context'] == null ? undefined : json['context'],
};
}
export function SearchRequestToJSON(json) {
return SearchRequestToJSONTyped(json, false);
}
export function SearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'query': value['query'],
'image_url': value['image_url'],
'base64_image': value['base64_image'],
'limit': value['limit'],
'filters': SearchFiltersToJSON(value['filters']),
'config': SearchConfigToJSON(value['config']),
'context': value['context'],
};
}
//# sourceMappingURL=SearchRequest.js.map