UNPKG

@indexea/sdk

Version:

Indexea JavaScript SDK (indexea.com)

98 lines (88 loc) 2.33 kB
/* tslint:disable */ /* eslint-disable */ /** * Indexea OpenAPI * OpenAPI of Indexea * * The version of the OpenAPI document: 1.0.0 * Contact: indexea.com@gmail.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface CrawlerArticleContent */ export interface CrawlerArticleContent { /** * * @type {string} * @memberof CrawlerArticleContent */ url?: string; /** * * @type {string} * @memberof CrawlerArticleContent */ title?: string; /** * * @type {string} * @memberof CrawlerArticleContent */ date?: string; /** * * @type {string} * @memberof CrawlerArticleContent */ content?: string; /** * * @type {Array<string>} * @memberof CrawlerArticleContent */ tags?: Array<string>; } /** * Check if a given object implements the CrawlerArticleContent interface. */ export function instanceOfCrawlerArticleContent(value: object): boolean { let isInstance = true; return isInstance; } export function CrawlerArticleContentFromJSON(json: any): CrawlerArticleContent { return CrawlerArticleContentFromJSONTyped(json, false); } export function CrawlerArticleContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CrawlerArticleContent { if ((json === undefined) || (json === null)) { return json; } return { 'url': !exists(json, 'url') ? undefined : json['url'], 'title': !exists(json, 'title') ? undefined : json['title'], 'date': !exists(json, 'date') ? undefined : json['date'], 'content': !exists(json, 'content') ? undefined : json['content'], 'tags': !exists(json, 'tags') ? undefined : json['tags'], }; } export function CrawlerArticleContentToJSON(value?: CrawlerArticleContent | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'url': value.url, 'title': value.title, 'date': value.date, 'content': value.content, 'tags': value.tags, }; }