"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.instanceOfReviewV2ReviewInfoV2Response = instanceOfReviewV2ReviewInfoV2Response; exports.ReviewV2ReviewInfoV2ResponseFromJSON = ReviewV2ReviewInfoV2ResponseFromJSON; exports.ReviewV2ReviewInfoV2ResponseFromJSONTyped = ReviewV2ReviewInfoV2ResponseFromJSONTyped; exports.ReviewV2ReviewInfoV2ResponseToJSON = ReviewV2ReviewInfoV2ResponseToJSON; const ReviewV2ReviewInfoV2ResponseStatusEnum_1 = require("./ReviewV2ReviewInfoV2ResponseStatusEnum"); const ReviewV2ReviewInfoV2ResponseVideo_1 = require("./ReviewV2ReviewInfoV2ResponseVideo"); const ReviewV2ReviewInfoV2ResponseOrderStatusEnum_1 = require("./ReviewV2ReviewInfoV2ResponseOrderStatusEnum"); const ReviewV2ReviewInfoV2ResponsePhoto_1 = require("./ReviewV2ReviewInfoV2ResponsePhoto"); /** * Check if a given object implements the ReviewV2ReviewInfoV2Response interface. */ function instanceOfReviewV2ReviewInfoV2Response(value) { return true; } function ReviewV2ReviewInfoV2ResponseFromJSON(json) { return ReviewV2ReviewInfoV2ResponseFromJSONTyped(json, false); } function ReviewV2ReviewInfoV2ResponseFromJSONTyped(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 : (0, ReviewV2ReviewInfoV2ResponseOrderStatusEnum_1.ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON)(json['order_status']), 'photos': json['photos'] == null ? undefined : (json['photos'].map(ReviewV2ReviewInfoV2ResponsePhoto_1.ReviewV2ReviewInfoV2ResponsePhotoFromJSON)), '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 : (0, ReviewV2ReviewInfoV2ResponseStatusEnum_1.ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON)(json['status']), 'text': json['text'] == null ? undefined : json['text'], 'videos': json['videos'] == null ? undefined : (json['videos'].map(ReviewV2ReviewInfoV2ResponseVideo_1.ReviewV2ReviewInfoV2ResponseVideoFromJSON)), 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], }; } function ReviewV2ReviewInfoV2ResponseToJSON(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': (0, ReviewV2ReviewInfoV2ResponseOrderStatusEnum_1.ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON)(value['order_status']), 'photos': value['photos'] == null ? undefined : (value['photos'].map(ReviewV2ReviewInfoV2ResponsePhoto_1.ReviewV2ReviewInfoV2ResponsePhotoToJSON)), 'photos_amount': value['photos_amount'], 'published_at': value['published_at'], 'rating': value['rating'], 'sku': value['sku'], 'status': (0, ReviewV2ReviewInfoV2ResponseStatusEnum_1.ReviewV2ReviewInfoV2ResponseStatusEnumToJSON)(value['status']), 'text': value['text'], 'videos': value['videos'] == null ? undefined : (value['videos'].map(ReviewV2ReviewInfoV2ResponseVideo_1.ReviewV2ReviewInfoV2ResponseVideoToJSON)), 'videos_amount': value['videos_amount'], }; }