@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
52 lines (51 loc) • 1.83 kB
JavaScript
/* 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.TelegramSourceParamsToJSONTyped = 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) || value['channelName'] === undefined)
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(json) {
return TelegramSourceParamsToJSONTyped(json, false);
}
exports.TelegramSourceParamsToJSON = TelegramSourceParamsToJSON;
function TelegramSourceParamsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'channel_name': value['channelName'],
};
}
exports.TelegramSourceParamsToJSONTyped = TelegramSourceParamsToJSONTyped;
;