@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
76 lines (65 loc) • 2.07 kB
text/typescript
/* 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 { mapValues } from '../runtime';
/**
*
* @export
* @interface DomainHitsSurfaceResponse
*/
export interface DomainHitsSurfaceResponse {
/**
*
* @type {number}
* @memberof DomainHitsSurfaceResponse
*/
hits: number;
/**
*
* @type {number}
* @memberof DomainHitsSurfaceResponse
*/
surfaced: number;
}
/**
* Check if a given object implements the DomainHitsSurfaceResponse interface.
*/
export function instanceOfDomainHitsSurfaceResponse(value: object): value is DomainHitsSurfaceResponse {
if (!('hits' in value) || value['hits'] === undefined) return false;
if (!('surfaced' in value) || value['surfaced'] === undefined) return false;
return true;
}
export function DomainHitsSurfaceResponseFromJSON(json: any): DomainHitsSurfaceResponse {
return DomainHitsSurfaceResponseFromJSONTyped(json, false);
}
export function DomainHitsSurfaceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainHitsSurfaceResponse {
if (json == null) {
return json;
}
return {
'hits': json['hits'],
'surfaced': json['surfaced'],
};
}
export function DomainHitsSurfaceResponseToJSON(json: any): DomainHitsSurfaceResponse {
return DomainHitsSurfaceResponseToJSONTyped(json, false);
}
export function DomainHitsSurfaceResponseToJSONTyped(value?: DomainHitsSurfaceResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'hits': value['hits'],
'surfaced': value['surfaced'],
};
}