UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
41 lines (40 loc) 1.22 kB
/* 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. */ /** * Check if a given object implements the AsknewsApiSchemaV1CommonGraphRelationships interface. */ export function instanceOfAsknewsApiSchemaV1CommonGraphRelationships(value) { return true; } export function AsknewsApiSchemaV1CommonGraphRelationshipsFromJSON(json) { return AsknewsApiSchemaV1CommonGraphRelationshipsFromJSONTyped(json, false); } export function AsknewsApiSchemaV1CommonGraphRelationshipsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'nodes': json['nodes'] == null ? undefined : json['nodes'], 'edges': json['edges'] == null ? undefined : json['edges'], }; } export function AsknewsApiSchemaV1CommonGraphRelationshipsToJSON(value) { if (value == null) { return value; } return { 'nodes': value['nodes'], 'edges': value['edges'], }; }