"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.instanceOfCarriagev1CarriageContainerGetResponse = instanceOfCarriagev1CarriageContainerGetResponse; exports.Carriagev1CarriageContainerGetResponseFromJSON = Carriagev1CarriageContainerGetResponseFromJSON; exports.Carriagev1CarriageContainerGetResponseFromJSONTyped = Carriagev1CarriageContainerGetResponseFromJSONTyped; exports.Carriagev1CarriageContainerGetResponseToJSON = Carriagev1CarriageContainerGetResponseToJSON; const Carriagev1CarriageContainerGetResponsePostings_1 = require("./Carriagev1CarriageContainerGetResponsePostings"); /** * Check if a given object implements the Carriagev1CarriageContainerGetResponse interface. */ function instanceOfCarriagev1CarriageContainerGetResponse(value) { return true; } function Carriagev1CarriageContainerGetResponseFromJSON(json) { return Carriagev1CarriageContainerGetResponseFromJSONTyped(json, false); } function Carriagev1CarriageContainerGetResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], 'cargo_type': json['cargo_type'] == null ? undefined : json['cargo_type'], 'container_id': json['container_id'] == null ? undefined : json['container_id'], 'container_number': json['container_number'] == null ? undefined : json['container_number'], 'count_of_postings': json['count_of_postings'] == null ? undefined : json['count_of_postings'], 'created_at': json['created_at'] == null ? undefined : json['created_at'], 'parent_container_id': json['parent_container_id'] == null ? undefined : json['parent_container_id'], 'postings': json['postings'] == null ? undefined : (json['postings'].map(Carriagev1CarriageContainerGetResponsePostings_1.Carriagev1CarriageContainerGetResponsePostingsFromJSON)), 'related_container_ids': json['related_container_ids'] == null ? undefined : json['related_container_ids'], 'sort_type': json['sort_type'] == null ? undefined : json['sort_type'], 'status': json['status'] == null ? undefined : json['status'], 'warehouse_date': json['warehouse_date'] == null ? undefined : json['warehouse_date'], 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], 'weight': json['weight'] == null ? undefined : json['weight'], }; } function Carriagev1CarriageContainerGetResponseToJSON(value) { if (value == null) { return value; } return { 'available_actions': value['available_actions'], 'cargo_type': value['cargo_type'], 'container_id': value['container_id'], 'container_number': value['container_number'], 'count_of_postings': value['count_of_postings'], 'created_at': value['created_at'], 'parent_container_id': value['parent_container_id'], 'postings': value['postings'] == null ? undefined : (value['postings'].map(Carriagev1CarriageContainerGetResponsePostings_1.Carriagev1CarriageContainerGetResponsePostingsToJSON)), 'related_container_ids': value['related_container_ids'], 'sort_type': value['sort_type'], 'status': value['status'], 'warehouse_date': value['warehouse_date'], 'warehouse_id': value['warehouse_id'], 'warehouse_name': value['warehouse_name'], 'weight': value['weight'], }; }