UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.39 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 ScrapeItem interface. */ export function instanceOfScrapeItem(value) { if (!('userAgent' in value) || value['userAgent'] === undefined) return false; if (!('count' in value) || value['count'] === undefined) return false; return true; } export function ScrapeItemFromJSON(json) { return ScrapeItemFromJSONTyped(json, false); } export function ScrapeItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'userAgent': json['user_agent'], 'count': json['count'], }; } export function ScrapeItemToJSON(json) { return ScrapeItemToJSONTyped(json, false); } export function ScrapeItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'user_agent': value['userAgent'], 'count': value['count'], }; }