"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Документация Ozon Seller API * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) * * The version of the OpenAPI document: 2.1 * * * 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.instanceOfPostingPostingFinancialData = instanceOfPostingPostingFinancialData; exports.PostingPostingFinancialDataFromJSON = PostingPostingFinancialDataFromJSON; exports.PostingPostingFinancialDataFromJSONTyped = PostingPostingFinancialDataFromJSONTyped; exports.PostingPostingFinancialDataToJSON = PostingPostingFinancialDataToJSON; const PostingFinancialDataProduct_1 = require("./PostingFinancialDataProduct"); /** * Check if a given object implements the PostingPostingFinancialData interface. */ function instanceOfPostingPostingFinancialData(value) { return true; } function PostingPostingFinancialDataFromJSON(json) { return PostingPostingFinancialDataFromJSONTyped(json, false); } function PostingPostingFinancialDataFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductFromJSON)), }; } function PostingPostingFinancialDataToJSON(value) { if (value == null) { return value; } return { 'cluster_from': value['cluster_from'], 'cluster_to': value['cluster_to'], 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductToJSON)), }; }