UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.42 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.18.6 * 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.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)) return false; if (!('version' in value)) 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(value) { if (value == null) { return value; } return { 'app': value['app'], 'version': value['version'], }; } exports.PingModelToJSON = PingModelToJSON;