UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.54 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.TelegramSourceParamsToJSON = exports.TelegramSourceParamsFromJSONTyped = exports.TelegramSourceParamsFromJSON = exports.instanceOfTelegramSourceParams = void 0; /** * Check if a given object implements the TelegramSourceParams interface. */ function instanceOfTelegramSourceParams(value) { if (!('channelName' in value)) return false; return true; } exports.instanceOfTelegramSourceParams = instanceOfTelegramSourceParams; function TelegramSourceParamsFromJSON(json) { return TelegramSourceParamsFromJSONTyped(json, false); } exports.TelegramSourceParamsFromJSON = TelegramSourceParamsFromJSON; function TelegramSourceParamsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'channelName': json['channel_name'], }; } exports.TelegramSourceParamsFromJSONTyped = TelegramSourceParamsFromJSONTyped; function TelegramSourceParamsToJSON(value) { if (value == null) { return value; } return { 'channel_name': value['channelName'], }; } exports.TelegramSourceParamsToJSON = TelegramSourceParamsToJSON;