/* 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 CreateDeepNewsResponseStreamSourcesGraphSource
 */
export interface CreateDeepNewsResponseStreamSourcesGraphSource {
    /**
     * 
     * @type {string}
     * @memberof CreateDeepNewsResponseStreamSourcesGraphSource
     */
    kind?: CreateDeepNewsResponseStreamSourcesGraphSourceKindEnum;
    /**
     * 
     * @type {string}
     * @memberof CreateDeepNewsResponseStreamSourcesGraphSource
     */
    data: string;
}


/**
 * @export
 */
export const CreateDeepNewsResponseStreamSourcesGraphSourceKindEnum = {
    Graph: 'graph'
} as const;
export type CreateDeepNewsResponseStreamSourcesGraphSourceKindEnum = typeof CreateDeepNewsResponseStreamSourcesGraphSourceKindEnum[keyof typeof CreateDeepNewsResponseStreamSourcesGraphSourceKindEnum];


/**
 * Check if a given object implements the CreateDeepNewsResponseStreamSourcesGraphSource interface.
 */
export function instanceOfCreateDeepNewsResponseStreamSourcesGraphSource(value: object): value is CreateDeepNewsResponseStreamSourcesGraphSource {
    if (!('data' in value) || value['data'] === undefined) return false;
    return true;
}

export function CreateDeepNewsResponseStreamSourcesGraphSourceFromJSON(json: any): CreateDeepNewsResponseStreamSourcesGraphSource {
    return CreateDeepNewsResponseStreamSourcesGraphSourceFromJSONTyped(json, false);
}

export function CreateDeepNewsResponseStreamSourcesGraphSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDeepNewsResponseStreamSourcesGraphSource {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'] == null ? undefined : json['kind'],
        'data': json['data'],
    };
}

export function CreateDeepNewsResponseStreamSourcesGraphSourceToJSON(json: any): CreateDeepNewsResponseStreamSourcesGraphSource {
    return CreateDeepNewsResponseStreamSourcesGraphSourceToJSONTyped(json, false);
}

export function CreateDeepNewsResponseStreamSourcesGraphSourceToJSONTyped(value?: CreateDeepNewsResponseStreamSourcesGraphSource | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'kind': value['kind'],
        'data': value['data'],
    };
}

