UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
76 lines (65 loc) 1.87 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface HitShareItem */ export interface HitShareItem { /** * * @type {string} * @memberof HitShareItem */ domain: string; /** * * @type {number} * @memberof HitShareItem */ hitShare: number; } /** * Check if a given object implements the HitShareItem interface. */ export function instanceOfHitShareItem(value: object): value is HitShareItem { if (!('domain' in value) || value['domain'] === undefined) return false; if (!('hitShare' in value) || value['hitShare'] === undefined) return false; return true; } export function HitShareItemFromJSON(json: any): HitShareItem { return HitShareItemFromJSONTyped(json, false); } export function HitShareItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): HitShareItem { if (json == null) { return json; } return { 'domain': json['domain'], 'hitShare': json['hit_share'], }; } export function HitShareItemToJSON(json: any): HitShareItem { return HitShareItemToJSONTyped(json, false); } export function HitShareItemToJSONTyped(value?: HitShareItem | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'domain': value['domain'], 'hit_share': value['hitShare'], }; }