"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.instanceOfV1UpdateWarehouseFBSFirstMileRequest = instanceOfV1UpdateWarehouseFBSFirstMileRequest; exports.V1UpdateWarehouseFBSFirstMileRequestFromJSON = V1UpdateWarehouseFBSFirstMileRequestFromJSON; exports.V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped = V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped; exports.V1UpdateWarehouseFBSFirstMileRequestToJSON = V1UpdateWarehouseFBSFirstMileRequestToJSON; const V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum_1 = require("./V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum"); /** * Check if a given object implements the V1UpdateWarehouseFBSFirstMileRequest interface. */ function instanceOfV1UpdateWarehouseFBSFirstMileRequest(value) { if (!('cut_in_time' in value) || value['cut_in_time'] === undefined) return false; if (!('first_mile_type' in value) || value['first_mile_type'] === undefined) return false; if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) return false; if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) return false; return true; } function V1UpdateWarehouseFBSFirstMileRequestFromJSON(json) { return V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json, false); } function V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'cut_in_time': json['cut_in_time'], 'drop_off_point_id': json['drop_off_point_id'] == null ? undefined : json['drop_off_point_id'], 'first_mile_type': (0, V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum_1.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON)(json['first_mile_type']), 'timeslot_id': json['timeslot_id'], 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], 'warehouse_id': json['warehouse_id'], }; } function V1UpdateWarehouseFBSFirstMileRequestToJSON(value) { if (value == null) { return value; } return { 'cut_in_time': value['cut_in_time'], 'drop_off_point_id': value['drop_off_point_id'], 'first_mile_type': (0, V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum_1.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON)(value['first_mile_type']), 'timeslot_id': value['timeslot_id'], 'return_point_id': value['return_point_id'], 'warehouse_id': value['warehouse_id'], }; }