@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
67 lines (56 loc) • 1.69 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.19.10
* 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.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface TelegramSourceParams
*/
export interface TelegramSourceParams {
/**
* The channel name to use as a source
* @type {string}
* @memberof TelegramSourceParams
*/
channelName: string;
}
/**
* Check if a given object implements the TelegramSourceParams interface.
*/
export function instanceOfTelegramSourceParams(value: object): value is TelegramSourceParams {
if (!('channelName' in value) || value['channelName'] === undefined) return false;
return true;
}
export function TelegramSourceParamsFromJSON(json: any): TelegramSourceParams {
return TelegramSourceParamsFromJSONTyped(json, false);
}
export function TelegramSourceParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelegramSourceParams {
if (json == null) {
return json;
}
return {
'channelName': json['channel_name'],
};
}
export function TelegramSourceParamsToJSON(json: any): TelegramSourceParams {
return TelegramSourceParamsToJSONTyped(json, false);
}
export function TelegramSourceParamsToJSONTyped(value?: TelegramSourceParams | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'channel_name': value['channelName'],
};
}