UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
45 lines (44 loc) 1.05 kB
/* 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. */ /** * Check if a given object implements the PingModel interface. */ export function instanceOfPingModel(value) { if (!('app' in value)) return false; if (!('version' in value)) return false; return true; } export function PingModelFromJSON(json) { return PingModelFromJSONTyped(json, false); } export function PingModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'app': json['app'], 'version': json['version'], }; } export function PingModelToJSON(value) { if (value == null) { return value; } return { 'app': value['app'], 'version': value['version'], }; }