"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.instanceOfV1GetLabelBatchResponseResult = instanceOfV1GetLabelBatchResponseResult; exports.V1GetLabelBatchResponseResultFromJSON = V1GetLabelBatchResponseResultFromJSON; exports.V1GetLabelBatchResponseResultFromJSONTyped = V1GetLabelBatchResponseResultFromJSONTyped; exports.V1GetLabelBatchResponseResultToJSON = V1GetLabelBatchResponseResultToJSON; const ResultUnprintedPosting_1 = require("./ResultUnprintedPosting"); /** * Check if a given object implements the V1GetLabelBatchResponseResult interface. */ function instanceOfV1GetLabelBatchResponseResult(value) { return true; } function V1GetLabelBatchResponseResultFromJSON(json) { return V1GetLabelBatchResponseResultFromJSONTyped(json, false); } function V1GetLabelBatchResponseResultFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'error': json['error'] == null ? undefined : json['error'], 'file_url': json['file_url'] == null ? undefined : json['file_url'], 'printed_postings_count': json['printed_postings_count'] == null ? undefined : json['printed_postings_count'], 'status': json['status'] == null ? undefined : json['status'], 'unprinted_postings': json['unprinted_postings'] == null ? undefined : (json['unprinted_postings'].map(ResultUnprintedPosting_1.ResultUnprintedPostingFromJSON)), 'unprinted_postings_count': json['unprinted_postings_count'] == null ? undefined : json['unprinted_postings_count'], }; } function V1GetLabelBatchResponseResultToJSON(value) { if (value == null) { return value; } return { 'error': value['error'], 'file_url': value['file_url'], 'printed_postings_count': value['printed_postings_count'], 'status': value['status'], 'unprinted_postings': value['unprinted_postings'] == null ? undefined : (value['unprinted_postings'].map(ResultUnprintedPosting_1.ResultUnprintedPostingToJSON)), 'unprinted_postings_count': value['unprinted_postings_count'], }; }