UNPKG

@indexea/sdk

Version:

Indexea JavaScript SDK (indexea.com)

59 lines (58 loc) 2.13 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CrawlerArticleContentToJSON = exports.CrawlerArticleContentFromJSONTyped = exports.CrawlerArticleContentFromJSON = exports.instanceOfCrawlerArticleContent = void 0; var runtime_1 = require("../runtime"); /** * Check if a given object implements the CrawlerArticleContent interface. */ function instanceOfCrawlerArticleContent(value) { var isInstance = true; return isInstance; } exports.instanceOfCrawlerArticleContent = instanceOfCrawlerArticleContent; function CrawlerArticleContentFromJSON(json) { return CrawlerArticleContentFromJSONTyped(json, false); } exports.CrawlerArticleContentFromJSON = CrawlerArticleContentFromJSON; function CrawlerArticleContentFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'], 'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'], 'date': !(0, runtime_1.exists)(json, 'date') ? undefined : json['date'], 'content': !(0, runtime_1.exists)(json, 'content') ? undefined : json['content'], 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'], }; } exports.CrawlerArticleContentFromJSONTyped = CrawlerArticleContentFromJSONTyped; function CrawlerArticleContentToJSON(value) { 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, }; } exports.CrawlerArticleContentToJSON = CrawlerArticleContentToJSON;