"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.instanceOfV3ChatInfo = instanceOfV3ChatInfo; exports.V3ChatInfoFromJSON = V3ChatInfoFromJSON; exports.V3ChatInfoFromJSONTyped = V3ChatInfoFromJSONTyped; exports.V3ChatInfoToJSON = V3ChatInfoToJSON; const V3ChatDetailsInfo_1 = require("./V3ChatDetailsInfo"); /** * Check if a given object implements the V3ChatInfo interface. */ function instanceOfV3ChatInfo(value) { return true; } function V3ChatInfoFromJSON(json) { return V3ChatInfoFromJSONTyped(json, false); } function V3ChatInfoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'chat': json['chat'] == null ? undefined : (0, V3ChatDetailsInfo_1.V3ChatDetailsInfoFromJSON)(json['chat']), 'first_unread_message_id': json['first_unread_message_id'] == null ? undefined : json['first_unread_message_id'], 'last_message_id': json['last_message_id'] == null ? undefined : json['last_message_id'], 'unread_count': json['unread_count'] == null ? undefined : json['unread_count'], }; } function V3ChatInfoToJSON(value) { if (value == null) { return value; } return { 'chat': (0, V3ChatDetailsInfo_1.V3ChatDetailsInfoToJSON)(value['chat']), 'first_unread_message_id': value['first_unread_message_id'], 'last_message_id': value['last_message_id'], 'unread_count': value['unread_count'], }; }