UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
56 lines (55 loc) 2.14 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.22 * Contact: contact@emergentmethods.ai * * 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.DomainQueryArticleItemToJSONTyped = exports.DomainQueryArticleItemToJSON = exports.DomainQueryArticleItemFromJSONTyped = exports.DomainQueryArticleItemFromJSON = exports.instanceOfDomainQueryArticleItem = void 0; /** * Check if a given object implements the DomainQueryArticleItem interface. */ function instanceOfDomainQueryArticleItem(value) { if (!('articleId' in value) || value['articleId'] === undefined) return false; if (!('hitDate' in value) || value['hitDate'] === undefined) return false; return true; } exports.instanceOfDomainQueryArticleItem = instanceOfDomainQueryArticleItem; function DomainQueryArticleItemFromJSON(json) { return DomainQueryArticleItemFromJSONTyped(json, false); } exports.DomainQueryArticleItemFromJSON = DomainQueryArticleItemFromJSON; function DomainQueryArticleItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'articleId': json['article_id'], 'hitDate': json['hit_date'], }; } exports.DomainQueryArticleItemFromJSONTyped = DomainQueryArticleItemFromJSONTyped; function DomainQueryArticleItemToJSON(json) { return DomainQueryArticleItemToJSONTyped(json, false); } exports.DomainQueryArticleItemToJSON = DomainQueryArticleItemToJSON; function DomainQueryArticleItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'article_id': value['articleId'], 'hit_date': value['hitDate'], }; } exports.DomainQueryArticleItemToJSONTyped = DomainQueryArticleItemToJSONTyped;