"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.instanceOfV1ReviewInfoResponse = instanceOfV1ReviewInfoResponse; exports.V1ReviewInfoResponseFromJSON = V1ReviewInfoResponseFromJSON; exports.V1ReviewInfoResponseFromJSONTyped = V1ReviewInfoResponseFromJSONTyped; exports.V1ReviewInfoResponseToJSON = V1ReviewInfoResponseToJSON; const ReviewInfoResponseVideo_1 = require("./ReviewInfoResponseVideo"); const ReviewInfoResponsePhoto_1 = require("./ReviewInfoResponsePhoto"); /** * Check if a given object implements the V1ReviewInfoResponse interface. */ function instanceOfV1ReviewInfoResponse(value) { return true; } function V1ReviewInfoResponseFromJSON(json) { return V1ReviewInfoResponseFromJSONTyped(json, false); } function V1ReviewInfoResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], 'dislikes_amount': json['dislikes_amount'] == null ? undefined : json['dislikes_amount'], 'id': json['id'] == null ? undefined : json['id'], 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], 'likes_amount': json['likes_amount'] == null ? undefined : json['likes_amount'], 'order_status': json['order_status'] == null ? undefined : json['order_status'], 'photos': json['photos'] == null ? undefined : (json['photos'].map(ReviewInfoResponsePhoto_1.ReviewInfoResponsePhotoFromJSON)), 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], 'published_at': json['published_at'] == null ? undefined : json['published_at'], 'rating': json['rating'] == null ? undefined : json['rating'], 'sku': json['sku'] == null ? undefined : json['sku'], 'status': json['status'] == null ? undefined : json['status'], 'text': json['text'] == null ? undefined : json['text'], 'videos': json['videos'] == null ? undefined : (json['videos'].map(ReviewInfoResponseVideo_1.ReviewInfoResponseVideoFromJSON)), 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], }; } function V1ReviewInfoResponseToJSON(value) { if (value == null) { return value; } return { 'comments_amount': value['comments_amount'], 'dislikes_amount': value['dislikes_amount'], 'id': value['id'], 'is_rating_participant': value['is_rating_participant'], 'likes_amount': value['likes_amount'], 'order_status': value['order_status'], 'photos': value['photos'] == null ? undefined : (value['photos'].map(ReviewInfoResponsePhoto_1.ReviewInfoResponsePhotoToJSON)), 'photos_amount': value['photos_amount'], 'published_at': value['published_at'], 'rating': value['rating'], 'sku': value['sku'], 'status': value['status'], 'text': value['text'], 'videos': value['videos'] == null ? undefined : (value['videos'].map(ReviewInfoResponseVideo_1.ReviewInfoResponseVideoToJSON)), 'videos_amount': value['videos_amount'], }; }