UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
56 lines (55 loc) 1.69 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.PingModelToJSONTyped = exports.PingModelToJSON = exports.PingModelFromJSONTyped = exports.PingModelFromJSON = exports.instanceOfPingModel = void 0; /** * Check if a given object implements the PingModel interface. */ function instanceOfPingModel(value) { if (!('app' in value) || value['app'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; } exports.instanceOfPingModel = instanceOfPingModel; function PingModelFromJSON(json) { return PingModelFromJSONTyped(json, false); } exports.PingModelFromJSON = PingModelFromJSON; function PingModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'app': json['app'], 'version': json['version'], }; } exports.PingModelFromJSONTyped = PingModelFromJSONTyped; function PingModelToJSON(json) { return PingModelToJSONTyped(json, false); } exports.PingModelToJSON = PingModelToJSON; function PingModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'app': value['app'], 'version': value['version'], }; } exports.PingModelToJSONTyped = PingModelToJSONTyped;