UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
53 lines (52 loc) 1.47 kB
/* 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 { FilterParamsFromJSON, FilterParamsToJSON, } from './FilterParams'; /** * @export */ export const AskNewsSourceIdentifierEnum = { Asknews: 'asknews' }; /** * Check if a given object implements the AskNewsSource interface. */ export function instanceOfAskNewsSource(value) { if (!('identifier' in value) || value['identifier'] === undefined) return false; return true; } export function AskNewsSourceFromJSON(json) { return AskNewsSourceFromJSONTyped(json, false); } export function AskNewsSourceFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'identifier': json['identifier'], 'params': json['params'] == null ? undefined : FilterParamsFromJSON(json['params']), }; } export function AskNewsSourceToJSON(json) { return AskNewsSourceToJSONTyped(json, false); } export function AskNewsSourceToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'identifier': value['identifier'], 'params': FilterParamsToJSON(value['params']), }; }