UNPKG

channel3-sdk

Version:

The official TypeScript/JavaScript SDK for Channel3 AI Shopping API

52 lines 1.51 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. */ /** * Check if a given object implements the Variant interface. */ export 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; } export function VariantFromJSON(json) { return VariantFromJSONTyped(json, false); } export function VariantFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'product_id': json['product_id'], 'title': json['title'], 'image_url': json['image_url'], }; } export function VariantToJSON(json) { return VariantToJSONTyped(json, false); } export 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