"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.instanceOfSupplyCargoInfo = instanceOfSupplyCargoInfo; exports.SupplyCargoInfoFromJSON = SupplyCargoInfoFromJSON; exports.SupplyCargoInfoFromJSONTyped = SupplyCargoInfoFromJSONTyped; exports.SupplyCargoInfoToJSON = SupplyCargoInfoToJSON; const CargoInfoTrackingInfo_1 = require("./CargoInfoTrackingInfo"); const CargoInfoContentTypeEnum_1 = require("./CargoInfoContentTypeEnum"); const SupplyCargoInfoTypeEnum_1 = require("./SupplyCargoInfoTypeEnum"); const CargoInfoPlacementZoneTypeEnum_1 = require("./CargoInfoPlacementZoneTypeEnum"); /** * Check if a given object implements the SupplyCargoInfo interface. */ function instanceOfSupplyCargoInfo(value) { return true; } function SupplyCargoInfoFromJSON(json) { return SupplyCargoInfoFromJSONTyped(json, false); } function SupplyCargoInfoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], 'content_type': json['content_type'] == null ? undefined : (0, CargoInfoContentTypeEnum_1.CargoInfoContentTypeEnumFromJSON)(json['content_type']), 'placement_zone_type': json['placement_zone_type'] == null ? undefined : (0, CargoInfoPlacementZoneTypeEnum_1.CargoInfoPlacementZoneTypeEnumFromJSON)(json['placement_zone_type']), 'tracking_info': json['tracking_info'] == null ? undefined : (0, CargoInfoTrackingInfo_1.CargoInfoTrackingInfoFromJSON)(json['tracking_info']), 'type': json['type'] == null ? undefined : (0, SupplyCargoInfoTypeEnum_1.SupplyCargoInfoTypeEnumFromJSON)(json['type']), }; } function SupplyCargoInfoToJSON(value) { if (value == null) { return value; } return { 'bundle_id': value['bundle_id'], 'cargo_id': value['cargo_id'], 'content_type': (0, CargoInfoContentTypeEnum_1.CargoInfoContentTypeEnumToJSON)(value['content_type']), 'placement_zone_type': (0, CargoInfoPlacementZoneTypeEnum_1.CargoInfoPlacementZoneTypeEnumToJSON)(value['placement_zone_type']), 'tracking_info': (0, CargoInfoTrackingInfo_1.CargoInfoTrackingInfoToJSON)(value['tracking_info']), 'type': (0, SupplyCargoInfoTypeEnum_1.SupplyCargoInfoTypeEnumToJSON)(value['type']), }; }