UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.63 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.21.1 * 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.CountResponseToJSONTyped = exports.CountResponseToJSON = exports.CountResponseFromJSONTyped = exports.CountResponseFromJSON = exports.instanceOfCountResponse = void 0; /** * Check if a given object implements the CountResponse interface. */ function instanceOfCountResponse(value) { if (!('count' in value) || value['count'] === undefined) return false; return true; } exports.instanceOfCountResponse = instanceOfCountResponse; function CountResponseFromJSON(json) { return CountResponseFromJSONTyped(json, false); } exports.CountResponseFromJSON = CountResponseFromJSON; function CountResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'count': json['count'], }; } exports.CountResponseFromJSONTyped = CountResponseFromJSONTyped; function CountResponseToJSON(json) { return CountResponseToJSONTyped(json, false); } exports.CountResponseToJSON = CountResponseToJSON; function CountResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'count': value['count'], }; } exports.CountResponseToJSONTyped = CountResponseToJSONTyped;