UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
61 lines (60 loc) 1.93 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.EmailActionToJSONTyped = exports.EmailActionToJSON = exports.EmailActionFromJSONTyped = exports.EmailActionFromJSON = exports.instanceOfEmailAction = exports.EmailActionActionEnum = void 0; const EmailParams_1 = require("./EmailParams"); /** * @export */ exports.EmailActionActionEnum = { Email: 'email' }; /** * Check if a given object implements the EmailAction interface. */ function instanceOfEmailAction(value) { if (!('params' in value) || value['params'] === undefined) return false; return true; } exports.instanceOfEmailAction = instanceOfEmailAction; function EmailActionFromJSON(json) { return EmailActionFromJSONTyped(json, false); } exports.EmailActionFromJSON = EmailActionFromJSON; function EmailActionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'action': json['action'] == null ? undefined : json['action'], 'params': (0, EmailParams_1.EmailParamsFromJSON)(json['params']), }; } exports.EmailActionFromJSONTyped = EmailActionFromJSONTyped; function EmailActionToJSON(json) { return EmailActionToJSONTyped(json, false); } exports.EmailActionToJSON = EmailActionToJSON; function EmailActionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'action': value['action'], 'params': (0, EmailParams_1.EmailParamsToJSON)(value['params']), }; } exports.EmailActionToJSONTyped = EmailActionToJSONTyped;