@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
45 lines (44 loc) • 1.47 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 { WikiResponseDictItemFromJSON, WikiResponseDictItemToJSON, } from './WikiResponseDictItem';
/**
* Check if a given object implements the WikiSearchResponse interface.
*/
export function instanceOfWikiSearchResponse(value) {
if (!('documents' in value) || value['documents'] === undefined)
return false;
return true;
}
export function WikiSearchResponseFromJSON(json) {
return WikiSearchResponseFromJSONTyped(json, false);
}
export function WikiSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'documents': (json['documents'].map(WikiResponseDictItemFromJSON)),
};
}
export function WikiSearchResponseToJSON(json) {
return WikiSearchResponseToJSONTyped(json, false);
}
export function WikiSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'documents': (value['documents'].map(WikiResponseDictItemToJSON)),
};
}