@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
51 lines (50 loc) • 1.58 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](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 { DeepNewsSourceParamsFromJSON, DeepNewsSourceParamsToJSON, } from './DeepNewsSourceParams';
/**
* @export
*/
export const DeepNewsSourceIdentifierEnum = {
Deepnews: 'deepnews'
};
/**
* Check if a given object implements the DeepNewsSource interface.
*/
export function instanceOfDeepNewsSource(value) {
return true;
}
export function DeepNewsSourceFromJSON(json) {
return DeepNewsSourceFromJSONTyped(json, false);
}
export function DeepNewsSourceFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'identifier': json['identifier'] == null ? undefined : json['identifier'],
'params': json['params'] == null ? undefined : DeepNewsSourceParamsFromJSON(json['params']),
};
}
export function DeepNewsSourceToJSON(json) {
return DeepNewsSourceToJSONTyped(json, false);
}
export function DeepNewsSourceToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'identifier': value['identifier'],
'params': DeepNewsSourceParamsToJSON(value['params']),
};
}