UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
56 lines (55 loc) 1.87 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.ReferralItemToJSONTyped = exports.ReferralItemToJSON = exports.ReferralItemFromJSONTyped = exports.ReferralItemFromJSON = exports.instanceOfReferralItem = void 0; /** * Check if a given object implements the ReferralItem interface. */ function instanceOfReferralItem(value) { if (!('site' in value) || value['site'] === undefined) return false; if (!('count' in value) || value['count'] === undefined) return false; return true; } exports.instanceOfReferralItem = instanceOfReferralItem; function ReferralItemFromJSON(json) { return ReferralItemFromJSONTyped(json, false); } exports.ReferralItemFromJSON = ReferralItemFromJSON; function ReferralItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'site': json['site'], 'count': json['count'], }; } exports.ReferralItemFromJSONTyped = ReferralItemFromJSONTyped; function ReferralItemToJSON(json) { return ReferralItemToJSONTyped(json, false); } exports.ReferralItemToJSON = ReferralItemToJSON; function ReferralItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'site': value['site'], 'count': value['count'], }; } exports.ReferralItemToJSONTyped = ReferralItemToJSONTyped;