UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
57 lines (56 loc) 1.71 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.16.2 * 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.ReportActionToJSON = exports.ReportActionFromJSONTyped = exports.ReportActionFromJSON = exports.instanceOfReportAction = exports.ReportActionActionEnum = void 0; const ReportParams_1 = require("./ReportParams"); /** * @export */ exports.ReportActionActionEnum = { Report: 'report' }; /** * Check if a given object implements the ReportAction interface. */ function instanceOfReportAction(value) { if (!('params' in value)) return false; return true; } exports.instanceOfReportAction = instanceOfReportAction; function ReportActionFromJSON(json) { return ReportActionFromJSONTyped(json, false); } exports.ReportActionFromJSON = ReportActionFromJSON; function ReportActionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'action': json['action'] == null ? undefined : json['action'], 'params': (0, ReportParams_1.ReportParamsFromJSON)(json['params']), }; } exports.ReportActionFromJSONTyped = ReportActionFromJSONTyped; function ReportActionToJSON(value) { if (value == null) { return value; } return { 'action': value['action'], 'params': (0, ReportParams_1.ReportParamsToJSON)(value['params']), }; } exports.ReportActionToJSON = ReportActionToJSON;