UNPKG

channel3-sdk

Version:

The official TypeScript/JavaScript SDK for Channel3 AI Shopping API

57 lines 1.72 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.instanceOfPrice = instanceOfPrice; exports.PriceFromJSON = PriceFromJSON; exports.PriceFromJSONTyped = PriceFromJSONTyped; exports.PriceToJSON = PriceToJSON; exports.PriceToJSONTyped = PriceToJSONTyped; /** * Check if a given object implements the Price interface. */ function instanceOfPrice(value) { if (!('price' in value) || value['price'] === undefined) return false; if (!('currency' in value) || value['currency'] === undefined) return false; return true; } function PriceFromJSON(json) { return PriceFromJSONTyped(json, false); } function PriceFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'price': json['price'], 'compare_at_price': json['compare_at_price'] == null ? undefined : json['compare_at_price'], 'currency': json['currency'], }; } function PriceToJSON(json) { return PriceToJSONTyped(json, false); } function PriceToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'price': value['price'], 'compare_at_price': value['compare_at_price'], 'currency': value['currency'], }; } //# sourceMappingURL=Price.js.map