"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.instanceOfCargoesV2CargoesGetResponseSupplies = instanceOfCargoesV2CargoesGetResponseSupplies; exports.CargoesV2CargoesGetResponseSuppliesFromJSON = CargoesV2CargoesGetResponseSuppliesFromJSON; exports.CargoesV2CargoesGetResponseSuppliesFromJSONTyped = CargoesV2CargoesGetResponseSuppliesFromJSONTyped; exports.CargoesV2CargoesGetResponseSuppliesToJSON = CargoesV2CargoesGetResponseSuppliesToJSON; const CargoesV2CargoesGetResponseSuppliesCargoes_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoes"); const CargoesV2CargoesGetResponseSuppliesLimits_1 = require("./CargoesV2CargoesGetResponseSuppliesLimits"); const CargoesV2CargoesGetResponseSuppliesTransportCargoes_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoes"); /** * Check if a given object implements the CargoesV2CargoesGetResponseSupplies interface. */ function instanceOfCargoesV2CargoesGetResponseSupplies(value) { return true; } function CargoesV2CargoesGetResponseSuppliesFromJSON(json) { return CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json, false); } function CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(CargoesV2CargoesGetResponseSuppliesCargoes_1.CargoesV2CargoesGetResponseSuppliesCargoesFromJSON)), 'cargoes_bundle_id': json['cargoes_bundle_id'] == null ? undefined : json['cargoes_bundle_id'], 'limits': json['limits'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesLimits_1.CargoesV2CargoesGetResponseSuppliesLimitsFromJSON)(json['limits']), 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], 'transport_cargoes': json['transport_cargoes'] == null ? undefined : (json['transport_cargoes'].map(CargoesV2CargoesGetResponseSuppliesTransportCargoes_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON)), }; } function CargoesV2CargoesGetResponseSuppliesToJSON(value) { if (value == null) { return value; } return { 'bundle_id': value['bundle_id'], 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(CargoesV2CargoesGetResponseSuppliesCargoes_1.CargoesV2CargoesGetResponseSuppliesCargoesToJSON)), 'cargoes_bundle_id': value['cargoes_bundle_id'], 'limits': (0, CargoesV2CargoesGetResponseSuppliesLimits_1.CargoesV2CargoesGetResponseSuppliesLimitsToJSON)(value['limits']), 'supply_id': value['supply_id'], 'transport_cargoes': value['transport_cargoes'] == null ? undefined : (value['transport_cargoes'].map(CargoesV2CargoesGetResponseSuppliesTransportCargoes_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON)), }; }