UNPKG

channel3-sdk

Version:

The official TypeScript/JavaScript SDK for Channel3 AI Shopping API

57 lines 2.13 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.instanceOfPaginatedResponseBrand = instanceOfPaginatedResponseBrand; exports.PaginatedResponseBrandFromJSON = PaginatedResponseBrandFromJSON; exports.PaginatedResponseBrandFromJSONTyped = PaginatedResponseBrandFromJSONTyped; exports.PaginatedResponseBrandToJSON = PaginatedResponseBrandToJSON; exports.PaginatedResponseBrandToJSONTyped = PaginatedResponseBrandToJSONTyped; const Brand_1 = require("./Brand"); const PaginationMeta_1 = require("./PaginationMeta"); /** * Check if a given object implements the PaginatedResponseBrand interface. */ function instanceOfPaginatedResponseBrand(value) { if (!('items' in value) || value['items'] === undefined) return false; if (!('pagination' in value) || value['pagination'] === undefined) return false; return true; } function PaginatedResponseBrandFromJSON(json) { return PaginatedResponseBrandFromJSONTyped(json, false); } function PaginatedResponseBrandFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'items': (json['items'].map(Brand_1.BrandFromJSON)), 'pagination': (0, PaginationMeta_1.PaginationMetaFromJSON)(json['pagination']), }; } function PaginatedResponseBrandToJSON(json) { return PaginatedResponseBrandToJSONTyped(json, false); } function PaginatedResponseBrandToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'items': (value['items'].map(Brand_1.BrandToJSON)), 'pagination': (0, PaginationMeta_1.PaginationMetaToJSON)(value['pagination']), }; } //# sourceMappingURL=PaginatedResponseBrand.js.map