"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.instanceOfWarehouseAddress = instanceOfWarehouseAddress; exports.WarehouseAddressFromJSON = WarehouseAddressFromJSON; exports.WarehouseAddressFromJSONTyped = WarehouseAddressFromJSONTyped; exports.WarehouseAddressToJSON = WarehouseAddressToJSON; const WarehouseAddressCoordinates_1 = require("./WarehouseAddressCoordinates"); /** * Check if a given object implements the WarehouseAddress interface. */ function instanceOfWarehouseAddress(value) { return true; } function WarehouseAddressFromJSON(json) { return WarehouseAddressFromJSONTyped(json, false); } function WarehouseAddressFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'address': json['address'] == null ? undefined : json['address'], 'city': json['city'] == null ? undefined : json['city'], 'coordinates': json['coordinates'] == null ? undefined : (0, WarehouseAddressCoordinates_1.WarehouseAddressCoordinatesFromJSON)(json['coordinates']), 'country_code': json['country_code'] == null ? undefined : json['country_code'], 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], 'region': json['region'] == null ? undefined : json['region'], 'timezone': json['timezone'] == null ? undefined : json['timezone'], }; } function WarehouseAddressToJSON(value) { if (value == null) { return value; } return { 'address': value['address'], 'city': value['city'], 'coordinates': (0, WarehouseAddressCoordinates_1.WarehouseAddressCoordinatesToJSON)(value['coordinates']), 'country_code': value['country_code'], 'macrolocal_cluster_id': value['macrolocal_cluster_id'], 'region': value['region'], 'timezone': value['timezone'], }; }