@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
48 lines (47 loc) • 1.63 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](https://status.asknews.app/status/prod)
*
* The version of the OpenAPI document: 0.24.66
* 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 AsknewsApiSchemaV1StoriesGraphRelationships interface.
*/
export function instanceOfAsknewsApiSchemaV1StoriesGraphRelationships(value) {
if (!('nodes' in value) || value['nodes'] === undefined)
return false;
if (!('edges' in value) || value['edges'] === undefined)
return false;
return true;
}
export function AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSON(json) {
return AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSONTyped(json, false);
}
export function AsknewsApiSchemaV1StoriesGraphRelationshipsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'nodes': json['nodes'],
'edges': json['edges'],
};
}
export function AsknewsApiSchemaV1StoriesGraphRelationshipsToJSON(json) {
return AsknewsApiSchemaV1StoriesGraphRelationshipsToJSONTyped(json, false);
}
export function AsknewsApiSchemaV1StoriesGraphRelationshipsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'nodes': value['nodes'],
'edges': value['edges'],
};
}