"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.instanceOfV1Rating = instanceOfV1Rating; exports.V1RatingFromJSON = V1RatingFromJSON; exports.V1RatingFromJSONTyped = V1RatingFromJSONTyped; exports.V1RatingToJSON = V1RatingToJSON; const RatingValue_1 = require("./RatingValue"); /** * Check if a given object implements the V1Rating interface. */ function instanceOfV1Rating(value) { return true; } function V1RatingFromJSON(json) { return V1RatingFromJSONTyped(json, false); } function V1RatingFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'danger_threshold': json['danger_threshold'] == null ? undefined : json['danger_threshold'], 'premium_threshold': json['premium_threshold'] == null ? undefined : json['premium_threshold'], 'rating': json['rating'] == null ? undefined : json['rating'], 'values': json['values'] == null ? undefined : (json['values'].map(RatingValue_1.RatingValueFromJSON)), 'warning_threshold': json['warning_threshold'] == null ? undefined : json['warning_threshold'], }; } function V1RatingToJSON(value) { if (value == null) { return value; } return { 'danger_threshold': value['danger_threshold'], 'premium_threshold': value['premium_threshold'], 'rating': value['rating'], 'values': value['values'] == null ? undefined : (value['values'].map(RatingValue_1.RatingValueToJSON)), 'warning_threshold': value['warning_threshold'], }; }