@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
44 lines (43 loc) • 1.33 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](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 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'],
};
}