/* 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 { mapValues } from '../runtime';
import type { BlueskySourceParams } from './BlueskySourceParams';
import {
    BlueskySourceParamsFromJSON,
    BlueskySourceParamsFromJSONTyped,
    BlueskySourceParamsToJSON,
    BlueskySourceParamsToJSONTyped,
} from './BlueskySourceParams';

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


/**
 * @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): value is BlueskySource {
    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'] == null ? undefined : json['identifier'],
        'params': json['params'] == null ? undefined : BlueskySourceParamsFromJSON(json['params']),
    };
}

export function BlueskySourceToJSON(json: any): BlueskySource {
    return BlueskySourceToJSONTyped(json, false);
}

export function BlueskySourceToJSONTyped(value?: BlueskySource | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'identifier': value['identifier'],
        'params': BlueskySourceParamsToJSON(value['params']),
    };
}

