UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
76 lines (65 loc) 2.05 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface DomainQueryArticleItem */ export interface DomainQueryArticleItem { /** * * @type {string} * @memberof DomainQueryArticleItem */ articleId: string; /** * * @type {string} * @memberof DomainQueryArticleItem */ hitDate: string; } /** * Check if a given object implements the DomainQueryArticleItem interface. */ export function instanceOfDomainQueryArticleItem(value: object): value is DomainQueryArticleItem { if (!('articleId' in value) || value['articleId'] === undefined) return false; if (!('hitDate' in value) || value['hitDate'] === undefined) return false; return true; } export function DomainQueryArticleItemFromJSON(json: any): DomainQueryArticleItem { return DomainQueryArticleItemFromJSONTyped(json, false); } export function DomainQueryArticleItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainQueryArticleItem { if (json == null) { return json; } return { 'articleId': json['article_id'], 'hitDate': json['hit_date'], }; } export function DomainQueryArticleItemToJSON(json: any): DomainQueryArticleItem { return DomainQueryArticleItemToJSONTyped(json, false); } export function DomainQueryArticleItemToJSONTyped(value?: DomainQueryArticleItem | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'article_id': value['articleId'], 'hit_date': value['hitDate'], }; }