UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.5 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.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. */ /** * Check if a given object implements the DomainHitsSurfaceResponse interface. */ export function instanceOfDomainHitsSurfaceResponse(value) { if (!('hits' in value) || value['hits'] === undefined) return false; if (!('surfaced' in value) || value['surfaced'] === undefined) return false; return true; } export function DomainHitsSurfaceResponseFromJSON(json) { return DomainHitsSurfaceResponseFromJSONTyped(json, false); } export function DomainHitsSurfaceResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'hits': json['hits'], 'surfaced': json['surfaced'], }; } export function DomainHitsSurfaceResponseToJSON(json) { return DomainHitsSurfaceResponseToJSONTyped(json, false); } export function DomainHitsSurfaceResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'hits': value['hits'], 'surfaced': value['surfaced'], }; }