UNPKG

channel3-sdk

Version:

The official TypeScript/JavaScript SDK for Channel3 AI Shopping API

59 lines 1.78 kB
"use strict"; /* 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.instanceOfVariant = instanceOfVariant; exports.VariantFromJSON = VariantFromJSON; exports.VariantFromJSONTyped = VariantFromJSONTyped; exports.VariantToJSON = VariantToJSON; exports.VariantToJSONTyped = VariantToJSONTyped; /** * Check if a given object implements the Variant interface. */ function instanceOfVariant(value) { if (!('product_id' in value) || value['product_id'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; if (!('image_url' in value) || value['image_url'] === undefined) return false; return true; } function VariantFromJSON(json) { return VariantFromJSONTyped(json, false); } function VariantFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'product_id': json['product_id'], 'title': json['title'], 'image_url': json['image_url'], }; } function VariantToJSON(json) { return VariantToJSONTyped(json, false); } function VariantToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'product_id': value['product_id'], 'title': value['title'], 'image_url': value['image_url'], }; } //# sourceMappingURL=Variant.js.map