@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
56 lines (55 loc) • 2.19 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomainHitsSurfaceResponseToJSONTyped = exports.DomainHitsSurfaceResponseToJSON = exports.DomainHitsSurfaceResponseFromJSONTyped = exports.DomainHitsSurfaceResponseFromJSON = exports.instanceOfDomainHitsSurfaceResponse = void 0;
/**
* Check if a given object implements the DomainHitsSurfaceResponse interface.
*/
function instanceOfDomainHitsSurfaceResponse(value) {
if (!('hits' in value) || value['hits'] === undefined)
return false;
if (!('surfaced' in value) || value['surfaced'] === undefined)
return false;
return true;
}
exports.instanceOfDomainHitsSurfaceResponse = instanceOfDomainHitsSurfaceResponse;
function DomainHitsSurfaceResponseFromJSON(json) {
return DomainHitsSurfaceResponseFromJSONTyped(json, false);
}
exports.DomainHitsSurfaceResponseFromJSON = DomainHitsSurfaceResponseFromJSON;
function DomainHitsSurfaceResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'hits': json['hits'],
'surfaced': json['surfaced'],
};
}
exports.DomainHitsSurfaceResponseFromJSONTyped = DomainHitsSurfaceResponseFromJSONTyped;
function DomainHitsSurfaceResponseToJSON(json) {
return DomainHitsSurfaceResponseToJSONTyped(json, false);
}
exports.DomainHitsSurfaceResponseToJSON = DomainHitsSurfaceResponseToJSON;
function DomainHitsSurfaceResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'hits': value['hits'],
'surfaced': value['surfaced'],
};
}
exports.DomainHitsSurfaceResponseToJSONTyped = DomainHitsSurfaceResponseToJSONTyped;