"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.instanceOfPolygonv1PolygonBindRequest = instanceOfPolygonv1PolygonBindRequest; exports.Polygonv1PolygonBindRequestFromJSON = Polygonv1PolygonBindRequestFromJSON; exports.Polygonv1PolygonBindRequestFromJSONTyped = Polygonv1PolygonBindRequestFromJSONTyped; exports.Polygonv1PolygonBindRequestToJSON = Polygonv1PolygonBindRequestToJSON; const PolygonBindRequestwhLocation_1 = require("./PolygonBindRequestwhLocation"); const PolygonBindRequestpolygon_1 = require("./PolygonBindRequestpolygon"); /** * Check if a given object implements the Polygonv1PolygonBindRequest interface. */ function instanceOfPolygonv1PolygonBindRequest(value) { if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) return false; if (!('polygons' in value) || value['polygons'] === undefined) return false; if (!('warehouse_location' in value) || value['warehouse_location'] === undefined) return false; return true; } function Polygonv1PolygonBindRequestFromJSON(json) { return Polygonv1PolygonBindRequestFromJSONTyped(json, false); } function Polygonv1PolygonBindRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'delivery_method_id': json['delivery_method_id'], 'polygons': (json['polygons'].map(PolygonBindRequestpolygon_1.PolygonBindRequestpolygonFromJSON)), 'warehouse_location': (0, PolygonBindRequestwhLocation_1.PolygonBindRequestwhLocationFromJSON)(json['warehouse_location']), }; } function Polygonv1PolygonBindRequestToJSON(value) { if (value == null) { return value; } return { 'delivery_method_id': value['delivery_method_id'], 'polygons': (value['polygons'].map(PolygonBindRequestpolygon_1.PolygonBindRequestpolygonToJSON)), 'warehouse_location': (0, PolygonBindRequestwhLocation_1.PolygonBindRequestwhLocationToJSON)(value['warehouse_location']), }; }