UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.59 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.WebhookParamsToJSON = exports.WebhookParamsFromJSONTyped = exports.WebhookParamsFromJSON = exports.instanceOfWebhookParams = void 0; /** * Check if a given object implements the WebhookParams interface. */ function instanceOfWebhookParams(value) { if (!('url' in value)) return false; return true; } exports.instanceOfWebhookParams = instanceOfWebhookParams; function WebhookParamsFromJSON(json) { return WebhookParamsFromJSONTyped(json, false); } exports.WebhookParamsFromJSON = WebhookParamsFromJSON; function WebhookParamsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'url': json['url'], 'headers': json['headers'] == null ? undefined : json['headers'], 'payload': json['payload'] == null ? undefined : json['payload'], }; } exports.WebhookParamsFromJSONTyped = WebhookParamsFromJSONTyped; function WebhookParamsToJSON(value) { if (value == null) { return value; } return { 'url': value['url'], 'headers': value['headers'], 'payload': value['payload'], }; } exports.WebhookParamsToJSON = WebhookParamsToJSON;