UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
85 lines (71 loc) 2.76 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 { mapValues } from '../runtime'; /** * * @export * @interface CreateDeepNewsResponseStreamSourcesGraphSource1 */ export interface CreateDeepNewsResponseStreamSourcesGraphSource1 { /** * * @type {string} * @memberof CreateDeepNewsResponseStreamSourcesGraphSource1 */ kind?: CreateDeepNewsResponseStreamSourcesGraphSource1KindEnum; /** * * @type {string} * @memberof CreateDeepNewsResponseStreamSourcesGraphSource1 */ data: string; } /** * @export */ export const CreateDeepNewsResponseStreamSourcesGraphSource1KindEnum = { Graph: 'graph' } as const; export type CreateDeepNewsResponseStreamSourcesGraphSource1KindEnum = typeof CreateDeepNewsResponseStreamSourcesGraphSource1KindEnum[keyof typeof CreateDeepNewsResponseStreamSourcesGraphSource1KindEnum]; /** * Check if a given object implements the CreateDeepNewsResponseStreamSourcesGraphSource1 interface. */ export function instanceOfCreateDeepNewsResponseStreamSourcesGraphSource1(value: object): value is CreateDeepNewsResponseStreamSourcesGraphSource1 { if (!('data' in value) || value['data'] === undefined) return false; return true; } export function CreateDeepNewsResponseStreamSourcesGraphSource1FromJSON(json: any): CreateDeepNewsResponseStreamSourcesGraphSource1 { return CreateDeepNewsResponseStreamSourcesGraphSource1FromJSONTyped(json, false); } export function CreateDeepNewsResponseStreamSourcesGraphSource1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDeepNewsResponseStreamSourcesGraphSource1 { if (json == null) { return json; } return { 'kind': json['kind'] == null ? undefined : json['kind'], 'data': json['data'], }; } export function CreateDeepNewsResponseStreamSourcesGraphSource1ToJSON(json: any): CreateDeepNewsResponseStreamSourcesGraphSource1 { return CreateDeepNewsResponseStreamSourcesGraphSource1ToJSONTyped(json, false); } export function CreateDeepNewsResponseStreamSourcesGraphSource1ToJSONTyped(value?: CreateDeepNewsResponseStreamSourcesGraphSource1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'kind': value['kind'], 'data': value['data'], }; }