"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.instanceOfV3ChatDetailsInfo = instanceOfV3ChatDetailsInfo; exports.V3ChatDetailsInfoFromJSON = V3ChatDetailsInfoFromJSON; exports.V3ChatDetailsInfoFromJSONTyped = V3ChatDetailsInfoFromJSONTyped; exports.V3ChatDetailsInfoToJSON = V3ChatDetailsInfoToJSON; const ChatInfoChatTypeEnum_1 = require("./ChatInfoChatTypeEnum"); const ChatInfoChatStatusEnum_1 = require("./ChatInfoChatStatusEnum"); /** * Check if a given object implements the V3ChatDetailsInfo interface. */ function instanceOfV3ChatDetailsInfo(value) { return true; } function V3ChatDetailsInfoFromJSON(json) { return V3ChatDetailsInfoFromJSONTyped(json, false); } function V3ChatDetailsInfoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'created_at': json['created_at'] == null ? undefined : json['created_at'], 'chat_id': json['chat_id'] == null ? undefined : json['chat_id'], 'chat_status': json['chat_status'] == null ? undefined : (0, ChatInfoChatStatusEnum_1.ChatInfoChatStatusEnumFromJSON)(json['chat_status']), 'chat_type': json['chat_type'] == null ? undefined : (0, ChatInfoChatTypeEnum_1.ChatInfoChatTypeEnumFromJSON)(json['chat_type']), }; } function V3ChatDetailsInfoToJSON(value) { if (value == null) { return value; } return { 'created_at': value['created_at'], 'chat_id': value['chat_id'], 'chat_status': (0, ChatInfoChatStatusEnum_1.ChatInfoChatStatusEnumToJSON)(value['chat_status']), 'chat_type': (0, ChatInfoChatTypeEnum_1.ChatInfoChatTypeEnumToJSON)(value['chat_type']), }; }