UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
47 lines (46 loc) 1.77 kB
/* 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. */ /** * Check if a given object implements the IntraClusterStatistics interface. */ export function instanceOfIntraClusterStatistics(value) { return true; } export function IntraClusterStatisticsFromJSON(json) { return IntraClusterStatisticsFromJSONTyped(json, false); } export 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'], }; } export 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'], }; }