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 Brand interface. */ export function instanceOfBrand(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function BrandFromJSON(json) { return BrandFromJSONTyped(json, false); } export function BrandFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'logo_url': json['logo_url'] == null ? undefined : json['logo_url'], 'description': json['description'] == null ? undefined : json['description'], }; } export function BrandToJSON(json) { return BrandToJSONTyped(json, false); } export function BrandToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'logo_url': value['logo_url'], 'description': value['description'], }; } //# sourceMappingURL=Brand.js.map