/* tslint:disable */
/* eslint-disable */
/**
 * AskNews API
 * AskNews API
 *
 * The version of the OpenAPI document: 0.18.6
 * 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';
import type { BlueskySourceParams } from './BlueskySourceParams';
import {
    BlueskySourceParamsFromJSON,
    BlueskySourceParamsFromJSONTyped,
    BlueskySourceParamsToJSON,
} from './BlueskySourceParams';

/**
 * 
 * @export
 * @interface BlueskySource
 */
export interface BlueskySource {
    /**
     * 
     * @type {string}
     * @memberof BlueskySource
     */
    identifier: BlueskySourceIdentifierEnum;
    /**
     * 
     * @type {BlueskySourceParams}
     * @memberof BlueskySource
     */
    params?: BlueskySourceParams;
}


/**
 * @export
 */
export const BlueskySourceIdentifierEnum = {
    Bluesky: 'bluesky'
} as const;
export type BlueskySourceIdentifierEnum = typeof BlueskySourceIdentifierEnum[keyof typeof BlueskySourceIdentifierEnum];


/**
 * Check if a given object implements the BlueskySource interface.
 */
export function instanceOfBlueskySource(value: object): boolean {
    if (!('identifier' in value)) return false;
    return true;
}

export function BlueskySourceFromJSON(json: any): BlueskySource {
    return BlueskySourceFromJSONTyped(json, false);
}

export function BlueskySourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueskySource {
    if (json == null) {
        return json;
    }
    return {
        
        'identifier': json['identifier'],
        'params': json['params'] == null ? undefined : BlueskySourceParamsFromJSON(json['params']),
    };
}

export function BlueskySourceToJSON(value?: BlueskySource | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'identifier': value['identifier'],
        'params': BlueskySourceParamsToJSON(value['params']),
    };
}

