"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.instanceOfDeliveryCourier = instanceOfDeliveryCourier; exports.DeliveryCourierFromJSON = DeliveryCourierFromJSON; exports.DeliveryCourierFromJSONTyped = DeliveryCourierFromJSONTyped; exports.DeliveryCourierToJSON = DeliveryCourierToJSON; const CourierCoordinates_1 = require("./CourierCoordinates"); /** * Check if a given object implements the DeliveryCourier interface. */ function instanceOfDeliveryCourier(value) { if (!('city' in value) || value['city'] === undefined) return false; if (!('coordinates' in value) || value['coordinates'] === undefined) return false; if (!('country' in value) || value['country'] === undefined) return false; if (!('house_number' in value) || value['house_number'] === undefined) return false; return true; } function DeliveryCourierFromJSON(json) { return DeliveryCourierFromJSONTyped(json, false); } function DeliveryCourierFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'apartment': json['apartment'] == null ? undefined : json['apartment'], 'city': json['city'], 'comment': json['comment'] == null ? undefined : json['comment'], 'coordinates': (0, CourierCoordinates_1.CourierCoordinatesFromJSON)(json['coordinates']), 'country': json['country'], 'entrance': json['entrance'] == null ? undefined : json['entrance'], 'floor': json['floor'] == null ? undefined : json['floor'], 'house_number': json['house_number'], 'intercom': json['intercom'] == null ? undefined : json['intercom'], 'region': json['region'] == null ? undefined : json['region'], 'street': json['street'] == null ? undefined : json['street'], 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], }; } function DeliveryCourierToJSON(value) { if (value == null) { return value; } return { 'apartment': value['apartment'], 'city': value['city'], 'comment': value['comment'], 'coordinates': (0, CourierCoordinates_1.CourierCoordinatesToJSON)(value['coordinates']), 'country': value['country'], 'entrance': value['entrance'], 'floor': value['floor'], 'house_number': value['house_number'], 'intercom': value['intercom'], 'region': value['region'], 'street': value['street'], 'zip_code': value['zip_code'], }; }