UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
64 lines (63 loc) 2.73 kB
"use strict"; /* 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.BodyBuildGraphToJSONTyped = exports.BodyBuildGraphToJSON = exports.BodyBuildGraphFromJSONTyped = exports.BodyBuildGraphFromJSON = exports.instanceOfBodyBuildGraph = void 0; /** * Check if a given object implements the BodyBuildGraph interface. */ function instanceOfBodyBuildGraph(value) { return true; } exports.instanceOfBodyBuildGraph = instanceOfBodyBuildGraph; function BodyBuildGraphFromJSON(json) { return BodyBuildGraphFromJSONTyped(json, false); } exports.BodyBuildGraphFromJSON = BodyBuildGraphFromJSON; function BodyBuildGraphFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'query': json['query'] == null ? undefined : json['query'], 'returnArticles': json['return_articles'] == null ? undefined : json['return_articles'], 'minClusterProbability': json['min_cluster_probability'] == null ? undefined : json['min_cluster_probability'], 'geoDisambiguation': json['geo_disambiguation'] == null ? undefined : json['geo_disambiguation'], 'filterParams': json['filter_params'] == null ? undefined : json['filter_params'], 'constrainedDisambiguations': json['constrained_disambiguations'] == null ? undefined : json['constrained_disambiguations'], 'docsUpload': json['docs_upload'] == null ? undefined : json['docs_upload'], 'visualizeWith': json['visualize_with'] == null ? undefined : json['visualize_with'], }; } exports.BodyBuildGraphFromJSONTyped = BodyBuildGraphFromJSONTyped; function BodyBuildGraphToJSON(json) { return BodyBuildGraphToJSONTyped(json, false); } exports.BodyBuildGraphToJSON = BodyBuildGraphToJSON; function BodyBuildGraphToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'query': value['query'], 'return_articles': value['returnArticles'], 'min_cluster_probability': value['minClusterProbability'], 'geo_disambiguation': value['geoDisambiguation'], 'filter_params': value['filterParams'], 'constrained_disambiguations': value['constrainedDisambiguations'], 'docs_upload': value['docsUpload'], 'visualize_with': value['visualizeWith'], }; } exports.BodyBuildGraphToJSONTyped = BodyBuildGraphToJSONTyped;