UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
59 lines (58 loc) 1.8 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.66 * 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 { SeriesConfig1FromJSON, SeriesConfig1ToJSON, } from './SeriesConfig1'; /** * @export */ export const ChartParameters1ChartTypeEnum = { Line: 'line', Bar: 'bar', BarPct: 'bar_pct' }; /** * Check if a given object implements the ChartParameters1 interface. */ export function instanceOfChartParameters1(value) { if (!('chartType' in value) || value['chartType'] === undefined) return false; if (!('series' in value) || value['series'] === undefined) return false; return true; } export function ChartParameters1FromJSON(json) { return ChartParameters1FromJSONTyped(json, false); } export function ChartParameters1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'chartType': json['chart_type'], 'title': json['title'] == null ? undefined : json['title'], 'series': (json['series'].map(SeriesConfig1FromJSON)), }; } export function ChartParameters1ToJSON(json) { return ChartParameters1ToJSONTyped(json, false); } export function ChartParameters1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'chart_type': value['chartType'], 'title': value['title'], 'series': (value['series'].map(SeriesConfig1ToJSON)), }; }