@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
52 lines (51 loc) • 2.35 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.21.1
* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsknewsApiSchemaV1CommonGraphRelationshipsToJSONTyped = exports.AsknewsApiSchemaV1CommonGraphRelationshipsToJSON = exports.AsknewsApiSchemaV1CommonGraphRelationshipsFromJSONTyped = exports.AsknewsApiSchemaV1CommonGraphRelationshipsFromJSON = exports.instanceOfAsknewsApiSchemaV1CommonGraphRelationships = void 0;
/**
* Check if a given object implements the AsknewsApiSchemaV1CommonGraphRelationships interface.
*/
function instanceOfAsknewsApiSchemaV1CommonGraphRelationships(value) {
return true;
}
exports.instanceOfAsknewsApiSchemaV1CommonGraphRelationships = instanceOfAsknewsApiSchemaV1CommonGraphRelationships;
function AsknewsApiSchemaV1CommonGraphRelationshipsFromJSON(json) {
return AsknewsApiSchemaV1CommonGraphRelationshipsFromJSONTyped(json, false);
}
exports.AsknewsApiSchemaV1CommonGraphRelationshipsFromJSON = AsknewsApiSchemaV1CommonGraphRelationshipsFromJSON;
function AsknewsApiSchemaV1CommonGraphRelationshipsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'nodes': json['nodes'] == null ? undefined : json['nodes'],
'edges': json['edges'] == null ? undefined : json['edges'],
};
}
exports.AsknewsApiSchemaV1CommonGraphRelationshipsFromJSONTyped = AsknewsApiSchemaV1CommonGraphRelationshipsFromJSONTyped;
function AsknewsApiSchemaV1CommonGraphRelationshipsToJSON(json) {
return AsknewsApiSchemaV1CommonGraphRelationshipsToJSONTyped(json, false);
}
exports.AsknewsApiSchemaV1CommonGraphRelationshipsToJSON = AsknewsApiSchemaV1CommonGraphRelationshipsToJSON;
function AsknewsApiSchemaV1CommonGraphRelationshipsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'nodes': value['nodes'],
'edges': value['edges'],
};
}
exports.AsknewsApiSchemaV1CommonGraphRelationshipsToJSONTyped = AsknewsApiSchemaV1CommonGraphRelationshipsToJSONTyped;
;