UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
75 lines (63 loc) 2.12 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](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 { mapValues } from '../runtime'; import type { WikiResponseDictItem } from './WikiResponseDictItem'; import { WikiResponseDictItemFromJSON, WikiResponseDictItemFromJSONTyped, WikiResponseDictItemToJSON, WikiResponseDictItemToJSONTyped, } from './WikiResponseDictItem'; /** * * @export * @interface WikiSearchResponse */ export interface WikiSearchResponse { /** * * @type {Array<WikiResponseDictItem>} * @memberof WikiSearchResponse */ documents: Array<WikiResponseDictItem>; } /** * Check if a given object implements the WikiSearchResponse interface. */ export function instanceOfWikiSearchResponse(value: object): value is WikiSearchResponse { if (!('documents' in value) || value['documents'] === undefined) return false; return true; } export function WikiSearchResponseFromJSON(json: any): WikiSearchResponse { return WikiSearchResponseFromJSONTyped(json, false); } export function WikiSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WikiSearchResponse { if (json == null) { return json; } return { 'documents': ((json['documents'] as Array<any>).map(WikiResponseDictItemFromJSON)), }; } export function WikiSearchResponseToJSON(json: any): WikiSearchResponse { return WikiSearchResponseToJSONTyped(json, false); } export function WikiSearchResponseToJSONTyped(value?: WikiSearchResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'documents': ((value['documents'] as Array<any>).map(WikiResponseDictItemToJSON)), }; }