UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
53 lines (52 loc) 1.47 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 { ChartResponseFromJSON, ChartResponseToJSON, } from './ChartResponse'; /** * @export */ export const SourceKindEnum = { Chart: 'chart' }; /** * Check if a given object implements the Source interface. */ export function instanceOfSource(value) { if (!('data' in value) || value['data'] === undefined) return false; return true; } export function SourceFromJSON(json) { return SourceFromJSONTyped(json, false); } export function SourceFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'kind': json['kind'] == null ? undefined : json['kind'], 'data': ChartResponseFromJSON(json['data']), }; } export function SourceToJSON(json) { return SourceToJSONTyped(json, false); } export function SourceToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'kind': value['kind'], 'data': ChartResponseToJSON(value['data']), }; }