UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
44 lines (43 loc) 1.22 kB
/* 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. */ /** * Check if a given object implements the GraphRelationships interface. */ export function instanceOfGraphRelationships(value) { return true; } export function GraphRelationshipsFromJSON(json) { return GraphRelationshipsFromJSONTyped(json, false); } export function GraphRelationshipsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'nodes': json['nodes'] == null ? undefined : json['nodes'], 'edges': json['edges'] == null ? undefined : json['edges'], }; } export function GraphRelationshipsToJSON(json) { return GraphRelationshipsToJSONTyped(json, false); } export function GraphRelationshipsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'nodes': value['nodes'], 'edges': value['edges'], }; }