UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.72 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. */ /** * @export */ export const CreateDeepNewsResponseStreamSourcesGraphSource1KindEnum = { Graph: 'graph' }; /** * Check if a given object implements the CreateDeepNewsResponseStreamSourcesGraphSource1 interface. */ export function instanceOfCreateDeepNewsResponseStreamSourcesGraphSource1(value) { if (!('data' in value) || value['data'] === undefined) return false; return true; } export function CreateDeepNewsResponseStreamSourcesGraphSource1FromJSON(json) { return CreateDeepNewsResponseStreamSourcesGraphSource1FromJSONTyped(json, false); } export function CreateDeepNewsResponseStreamSourcesGraphSource1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'kind': json['kind'] == null ? undefined : json['kind'], 'data': json['data'], }; } export function CreateDeepNewsResponseStreamSourcesGraphSource1ToJSON(json) { return CreateDeepNewsResponseStreamSourcesGraphSource1ToJSONTyped(json, false); } export function CreateDeepNewsResponseStreamSourcesGraphSource1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'kind': value['kind'], 'data': value['data'], }; }