UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
59 lines (58 loc) 1.79 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.22 * 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. */ import { SeriesConfigFromJSON, SeriesConfigToJSON, } from './SeriesConfig'; /** * @export */ export const ChartParametersChartTypeEnum = { Line: 'line', Bar: 'bar', BarPct: 'bar_pct' }; /** * Check if a given object implements the ChartParameters interface. */ export function instanceOfChartParameters(value) { if (!('chartType' in value) || value['chartType'] === undefined) return false; if (!('series' in value) || value['series'] === undefined) return false; return true; } export function ChartParametersFromJSON(json) { return ChartParametersFromJSONTyped(json, false); } export function ChartParametersFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'chartType': json['chart_type'], 'title': json['title'] == null ? undefined : json['title'], 'series': (json['series'].map(SeriesConfigFromJSON)), }; } export function ChartParametersToJSON(json) { return ChartParametersToJSONTyped(json, false); } export function ChartParametersToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'chart_type': value['chartType'], 'title': value['title'], 'series': (value['series'].map(SeriesConfigToJSON)), }; }