UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 2.03 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.18.6 * 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.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)) return false; if (!('edges' in value)) 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(value) { if (value == null) { return value; } return { 'nodes': value['nodes'], 'edges': value['edges'], }; } exports.AsknewsApiSchemaV1StoriesGraphRelationshipsToJSON = AsknewsApiSchemaV1StoriesGraphRelationshipsToJSON;