"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.instanceOfV1Restriction = instanceOfV1Restriction; exports.V1RestrictionFromJSON = V1RestrictionFromJSON; exports.V1RestrictionFromJSONTyped = V1RestrictionFromJSONTyped; exports.V1RestrictionToJSON = V1RestrictionToJSON; /** * Check if a given object implements the V1Restriction interface. */ function instanceOfV1Restriction(value) { return true; } function V1RestrictionFromJSON(json) { return V1RestrictionFromJSONTyped(json, false); } function V1RestrictionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], 'max_posting_weight': json['max_posting_weight'] == null ? undefined : json['max_posting_weight'], 'min_posting_weight': json['min_posting_weight'] == null ? undefined : json['min_posting_weight'], 'width': json['width'] == null ? undefined : json['width'], 'length': json['length'] == null ? undefined : json['length'], 'height': json['height'] == null ? undefined : json['height'], 'max_posting_price': json['max_posting_price'] == null ? undefined : json['max_posting_price'], 'min_posting_price': json['min_posting_price'] == null ? undefined : json['min_posting_price'], }; } function V1RestrictionToJSON(value) { if (value == null) { return value; } return { 'posting_number': value['posting_number'], 'max_posting_weight': value['max_posting_weight'], 'min_posting_weight': value['min_posting_weight'], 'width': value['width'], 'length': value['length'], 'height': value['height'], 'max_posting_price': value['max_posting_price'], 'min_posting_price': value['min_posting_price'], }; }