UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
44 lines (43 loc) 1.24 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 CountResponse interface. */ export function instanceOfCountResponse(value) { if (!('count' in value) || value['count'] === undefined) return false; return true; } export function CountResponseFromJSON(json) { return CountResponseFromJSONTyped(json, false); } export function CountResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'count': json['count'], }; } export function CountResponseToJSON(json) { return CountResponseToJSONTyped(json, false); } export function CountResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'count': value['count'], }; }