UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
60 lines (59 loc) 2.3 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DomainHitsSurfaceDayItemToJSONTyped = exports.DomainHitsSurfaceDayItemToJSON = exports.DomainHitsSurfaceDayItemFromJSONTyped = exports.DomainHitsSurfaceDayItemFromJSON = exports.instanceOfDomainHitsSurfaceDayItem = void 0; /** * Check if a given object implements the DomainHitsSurfaceDayItem interface. */ function instanceOfDomainHitsSurfaceDayItem(value) { if (!('day' in value) || value['day'] === undefined) return false; if (!('hits' in value) || value['hits'] === undefined) return false; if (!('surfaced' in value) || value['surfaced'] === undefined) return false; return true; } exports.instanceOfDomainHitsSurfaceDayItem = instanceOfDomainHitsSurfaceDayItem; function DomainHitsSurfaceDayItemFromJSON(json) { return DomainHitsSurfaceDayItemFromJSONTyped(json, false); } exports.DomainHitsSurfaceDayItemFromJSON = DomainHitsSurfaceDayItemFromJSON; function DomainHitsSurfaceDayItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'day': json['day'], 'hits': json['hits'], 'surfaced': json['surfaced'], }; } exports.DomainHitsSurfaceDayItemFromJSONTyped = DomainHitsSurfaceDayItemFromJSONTyped; function DomainHitsSurfaceDayItemToJSON(json) { return DomainHitsSurfaceDayItemToJSONTyped(json, false); } exports.DomainHitsSurfaceDayItemToJSON = DomainHitsSurfaceDayItemToJSON; function DomainHitsSurfaceDayItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'day': value['day'], 'hits': value['hits'], 'surfaced': value['surfaced'], }; } exports.DomainHitsSurfaceDayItemToJSONTyped = DomainHitsSurfaceDayItemToJSONTyped;