UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.37 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 ReferralItem interface. */ export function instanceOfReferralItem(value) { if (!('site' in value) || value['site'] === undefined) return false; if (!('count' in value) || value['count'] === undefined) return false; return true; } export function ReferralItemFromJSON(json) { return ReferralItemFromJSONTyped(json, false); } export function ReferralItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'site': json['site'], 'count': json['count'], }; } export function ReferralItemToJSON(json) { return ReferralItemToJSONTyped(json, false); } export function ReferralItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'site': value['site'], 'count': value['count'], }; }