UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
44 lines (43 loc) 1.53 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.22 * 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(json) { return AsknewsApiSchemaV1CommonGraphRelationshipsToJSONTyped(json, false); } export function AsknewsApiSchemaV1CommonGraphRelationshipsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'nodes': value['nodes'], 'edges': value['edges'], }; }