UNPKG

channel3-sdk

Version:

The official TypeScript/JavaScript SDK for Channel3 AI Shopping API

50 lines 1.47 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 Price interface. */ export function instanceOfPrice(value) { if (!('price' in value) || value['price'] === undefined) return false; if (!('currency' in value) || value['currency'] === undefined) return false; return true; } export function PriceFromJSON(json) { return PriceFromJSONTyped(json, false); } export 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'], }; } export function PriceToJSON(json) { return PriceToJSONTyped(json, false); } export 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