UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.62 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 DomainHitsSurfaceDayItem interface. */ export 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; } export function DomainHitsSurfaceDayItemFromJSON(json) { return DomainHitsSurfaceDayItemFromJSONTyped(json, false); } export function DomainHitsSurfaceDayItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'day': json['day'], 'hits': json['hits'], 'surfaced': json['surfaced'], }; } export function DomainHitsSurfaceDayItemToJSON(json) { return DomainHitsSurfaceDayItemToJSONTyped(json, false); } export function DomainHitsSurfaceDayItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'day': value['day'], 'hits': value['hits'], 'surfaced': value['surfaced'], }; }