UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.8 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.21.1 * 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.GraphRelationshipsToJSONTyped = exports.GraphRelationshipsToJSON = exports.GraphRelationshipsFromJSONTyped = exports.GraphRelationshipsFromJSON = exports.instanceOfGraphRelationships = void 0; /** * Check if a given object implements the GraphRelationships interface. */ function instanceOfGraphRelationships(value) { return true; } exports.instanceOfGraphRelationships = instanceOfGraphRelationships; function GraphRelationshipsFromJSON(json) { return GraphRelationshipsFromJSONTyped(json, false); } exports.GraphRelationshipsFromJSON = GraphRelationshipsFromJSON; function GraphRelationshipsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'nodes': json['nodes'] == null ? undefined : json['nodes'], 'edges': json['edges'] == null ? undefined : json['edges'], }; } exports.GraphRelationshipsFromJSONTyped = GraphRelationshipsFromJSONTyped; function GraphRelationshipsToJSON(json) { return GraphRelationshipsToJSONTyped(json, false); } exports.GraphRelationshipsToJSON = GraphRelationshipsToJSON; function GraphRelationshipsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'nodes': value['nodes'], 'edges': value['edges'], }; } exports.GraphRelationshipsToJSONTyped = GraphRelationshipsToJSONTyped;