UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
56 lines (55 loc) 2.47 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * 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.AsknewsApiSchemaV1StoriesGraphRelationshipsToJSONTyped = exports.AsknewsApiSchemaV1StoriesGraphRelationshipsToJSON = exports.AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSONTyped = exports.AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSON = exports.instanceOfAsknewsApiSchemaV1StoriesGraphRelationships = void 0; /** * Check if a given object implements the AsknewsApiSchemaV1StoriesGraphRelationships interface. */ function instanceOfAsknewsApiSchemaV1StoriesGraphRelationships(value) { if (!('nodes' in value) || value['nodes'] === undefined) return false; if (!('edges' in value) || value['edges'] === undefined) return false; return true; } exports.instanceOfAsknewsApiSchemaV1StoriesGraphRelationships = instanceOfAsknewsApiSchemaV1StoriesGraphRelationships; function AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSON(json) { return AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSONTyped(json, false); } exports.AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSON = AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSON; function AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'nodes': json['nodes'], 'edges': json['edges'], }; } exports.AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSONTyped = AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSONTyped; function AsknewsApiSchemaV1StoriesGraphRelationshipsToJSON(json) { return AsknewsApiSchemaV1StoriesGraphRelationshipsToJSONTyped(json, false); } exports.AsknewsApiSchemaV1StoriesGraphRelationshipsToJSON = AsknewsApiSchemaV1StoriesGraphRelationshipsToJSON; function AsknewsApiSchemaV1StoriesGraphRelationshipsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'nodes': value['nodes'], 'edges': value['edges'], }; } exports.AsknewsApiSchemaV1StoriesGraphRelationshipsToJSONTyped = AsknewsApiSchemaV1StoriesGraphRelationshipsToJSONTyped;