"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.instanceOfV2DraftSupplyCreateResponse = instanceOfV2DraftSupplyCreateResponse; exports.V2DraftSupplyCreateResponseFromJSON = V2DraftSupplyCreateResponseFromJSON; exports.V2DraftSupplyCreateResponseFromJSONTyped = V2DraftSupplyCreateResponseFromJSONTyped; exports.V2DraftSupplyCreateResponseToJSON = V2DraftSupplyCreateResponseToJSON; const V2DraftSupplyCreateResponseErrorReasonEnum_1 = require("./V2DraftSupplyCreateResponseErrorReasonEnum"); /** * Check if a given object implements the V2DraftSupplyCreateResponse interface. */ function instanceOfV2DraftSupplyCreateResponse(value) { return true; } function V2DraftSupplyCreateResponseFromJSON(json) { return V2DraftSupplyCreateResponseFromJSONTyped(json, false); } function V2DraftSupplyCreateResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V2DraftSupplyCreateResponseErrorReasonEnum_1.V2DraftSupplyCreateResponseErrorReasonEnumFromJSON)), }; } function V2DraftSupplyCreateResponseToJSON(value) { if (value == null) { return value; } return { 'draft_id': value['draft_id'], 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V2DraftSupplyCreateResponseErrorReasonEnum_1.V2DraftSupplyCreateResponseErrorReasonEnumToJSON)), }; }