UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
53 lines (52 loc) 1.62 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.22 * 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 { BlueskySourceParamsFromJSON, BlueskySourceParamsToJSON, } from './BlueskySourceParams'; /** * @export */ export const BlueskySourceIdentifierEnum = { Bluesky: 'bluesky' }; /** * Check if a given object implements the BlueskySource interface. */ export function instanceOfBlueskySource(value) { if (!('identifier' in value) || value['identifier'] === undefined) return false; return true; } export function BlueskySourceFromJSON(json) { return BlueskySourceFromJSONTyped(json, false); } export function BlueskySourceFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'identifier': json['identifier'], 'params': json['params'] == null ? undefined : BlueskySourceParamsFromJSON(json['params']), }; } export function BlueskySourceToJSON(json) { return BlueskySourceToJSONTyped(json, false); } export function BlueskySourceToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'identifier': value['identifier'], 'params': BlueskySourceParamsToJSON(value['params']), }; }