/* 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';
/**
 * 
 * @export
 * @interface AnthropicTextBlock
 */
export interface AnthropicTextBlock {
    /**
     * 
     * @type {string}
     * @memberof AnthropicTextBlock
     */
    type?: AnthropicTextBlockTypeEnum;
    /**
     * 
     * @type {string}
     * @memberof AnthropicTextBlock
     */
    text?: string;
}


/**
 * @export
 */
export const AnthropicTextBlockTypeEnum = {
    Text: 'text'
} as const;
export type AnthropicTextBlockTypeEnum = typeof AnthropicTextBlockTypeEnum[keyof typeof AnthropicTextBlockTypeEnum];


/**
 * Check if a given object implements the AnthropicTextBlock interface.
 */
export function instanceOfAnthropicTextBlock(value: object): value is AnthropicTextBlock {
    return true;
}

export function AnthropicTextBlockFromJSON(json: any): AnthropicTextBlock {
    return AnthropicTextBlockFromJSONTyped(json, false);
}

export function AnthropicTextBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnthropicTextBlock {
    if (json == null) {
        return json;
    }
    return {
        
        'type': json['type'] == null ? undefined : json['type'],
        'text': json['text'] == null ? undefined : json['text'],
    };
}

export function AnthropicTextBlockToJSON(json: any): AnthropicTextBlock {
    return AnthropicTextBlockToJSONTyped(json, false);
}

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

    return {
        
        'type': value['type'],
        'text': value['text'],
    };
}

