UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.5 kB
/* 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. */ /** * Check if a given object implements the DomainQueryArticleItem interface. */ export function instanceOfDomainQueryArticleItem(value) { if (!('articleId' in value) || value['articleId'] === undefined) return false; if (!('hitDate' in value) || value['hitDate'] === undefined) return false; return true; } export function DomainQueryArticleItemFromJSON(json) { return DomainQueryArticleItemFromJSONTyped(json, false); } export function DomainQueryArticleItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'articleId': json['article_id'], 'hitDate': json['hit_date'], }; } export function DomainQueryArticleItemToJSON(json) { return DomainQueryArticleItemToJSONTyped(json, false); } export function DomainQueryArticleItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'article_id': value['articleId'], 'hit_date': value['hitDate'], }; }