UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.24 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * 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) || value['app'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) 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(json) { return PingModelToJSONTyped(json, false); } export function PingModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'app': value['app'], 'version': value['version'], }; }