UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
50 lines (49 loc) 1.48 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.18.6 * 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 { WebSearchResultFromJSON, WebSearchResultToJSON, } from './WebSearchResult'; /** * @export */ export const CreateDeepNewsResponseStreamSourcesWebSourceKindEnum = { Web: 'web' }; /** * Check if a given object implements the CreateDeepNewsResponseStreamSourcesWebSource interface. */ export function instanceOfCreateDeepNewsResponseStreamSourcesWebSource(value) { if (!('data' in value)) return false; return true; } export function CreateDeepNewsResponseStreamSourcesWebSourceFromJSON(json) { return CreateDeepNewsResponseStreamSourcesWebSourceFromJSONTyped(json, false); } export function CreateDeepNewsResponseStreamSourcesWebSourceFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'kind': json['kind'] == null ? undefined : json['kind'], 'data': WebSearchResultFromJSON(json['data']), }; } export function CreateDeepNewsResponseStreamSourcesWebSourceToJSON(value) { if (value == null) { return value; } return { 'kind': value['kind'], 'data': WebSearchResultToJSON(value['data']), }; }