UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
54 lines (53 loc) 2.3 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.18.6 * 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.IntraClusterStatisticsToJSON = exports.IntraClusterStatisticsFromJSONTyped = exports.IntraClusterStatisticsFromJSON = exports.instanceOfIntraClusterStatistics = void 0; /** * Check if a given object implements the IntraClusterStatistics interface. */ function instanceOfIntraClusterStatistics(value) { return true; } exports.instanceOfIntraClusterStatistics = instanceOfIntraClusterStatistics; function IntraClusterStatisticsFromJSON(json) { return IntraClusterStatisticsFromJSONTyped(json, false); } exports.IntraClusterStatisticsFromJSON = IntraClusterStatisticsFromJSON; function IntraClusterStatisticsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'clusterArticlesPct': json['cluster_articles_pct'] == null ? undefined : json['cluster_articles_pct'], 'clusterCountriesPct': json['cluster_countries_pct'] == null ? undefined : json['cluster_countries_pct'], 'clusterDomainsPct': json['cluster_domains_pct'] == null ? undefined : json['cluster_domains_pct'], 'clusterLanguagesPct': json['cluster_languages_pct'] == null ? undefined : json['cluster_languages_pct'], 'clusterProbabilities': json['cluster_probabilities'] == null ? undefined : json['cluster_probabilities'], }; } exports.IntraClusterStatisticsFromJSONTyped = IntraClusterStatisticsFromJSONTyped; function IntraClusterStatisticsToJSON(value) { if (value == null) { return value; } return { 'cluster_articles_pct': value['clusterArticlesPct'], 'cluster_countries_pct': value['clusterCountriesPct'], 'cluster_domains_pct': value['clusterDomainsPct'], 'cluster_languages_pct': value['clusterLanguagesPct'], 'cluster_probabilities': value['clusterProbabilities'], }; } exports.IntraClusterStatisticsToJSON = IntraClusterStatisticsToJSON;