@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
53 lines (52 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.22
* 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 { FilterParamsFromJSON, FilterParamsToJSON, } from './FilterParams';
/**
* @export
*/
export const AskNewsSourceIdentifierEnum = {
Asknews: 'asknews'
};
/**
* Check if a given object implements the AskNewsSource interface.
*/
export function instanceOfAskNewsSource(value) {
if (!('identifier' in value) || value['identifier'] === undefined)
return false;
return true;
}
export function AskNewsSourceFromJSON(json) {
return AskNewsSourceFromJSONTyped(json, false);
}
export function AskNewsSourceFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'identifier': json['identifier'],
'params': json['params'] == null ? undefined : FilterParamsFromJSON(json['params']),
};
}
export function AskNewsSourceToJSON(json) {
return AskNewsSourceToJSONTyped(json, false);
}
export function AskNewsSourceToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'identifier': value['identifier'],
'params': FilterParamsToJSON(value['params']),
};
}