@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
52 lines (51 loc) • 1.59 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.19.10
* 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 CreateDeepNewsResponseStreamSourcesGraphSourceKindEnum = {
Graph: 'graph'
};
/**
* Check if a given object implements the CreateDeepNewsResponseStreamSourcesGraphSource interface.
*/
export function instanceOfCreateDeepNewsResponseStreamSourcesGraphSource(value) {
if (!('data' in value) || value['data'] === undefined)
return false;
return true;
}
export function CreateDeepNewsResponseStreamSourcesGraphSourceFromJSON(json) {
return CreateDeepNewsResponseStreamSourcesGraphSourceFromJSONTyped(json, false);
}
export function CreateDeepNewsResponseStreamSourcesGraphSourceFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'kind': json['kind'] == null ? undefined : json['kind'],
'data': json['data'],
};
}
export function CreateDeepNewsResponseStreamSourcesGraphSourceToJSON(json) {
return CreateDeepNewsResponseStreamSourcesGraphSourceToJSONTyped(json, false);
}
export function CreateDeepNewsResponseStreamSourcesGraphSourceToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'data': value['data'],
};
}