UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
53 lines (52 loc) 1.55 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.66 * 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 { WebSourceParamsFromJSON, WebSourceParamsToJSON, } from './WebSourceParams'; /** * @export */ export const WebSourceIdentifierEnum = { Web: 'web' }; /** * Check if a given object implements the WebSource interface. */ export function instanceOfWebSource(value) { if (!('params' in value) || value['params'] === undefined) return false; return true; } export function WebSourceFromJSON(json) { return WebSourceFromJSONTyped(json, false); } export function WebSourceFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'identifier': json['identifier'] == null ? undefined : json['identifier'], 'params': WebSourceParamsFromJSON(json['params']), }; } export function WebSourceToJSON(json) { return WebSourceToJSONTyped(json, false); } export function WebSourceToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'identifier': value['identifier'], 'params': WebSourceParamsToJSON(value['params']), }; }