/* 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 AnthropicThinkingBlock1
 */
export interface AnthropicThinkingBlock1 {
    /**
     * 
     * @type {string}
     * @memberof AnthropicThinkingBlock1
     */
    type?: AnthropicThinkingBlock1TypeEnum;
    /**
     * 
     * @type {string}
     * @memberof AnthropicThinkingBlock1
     */
    thinking?: string;
}


/**
 * @export
 */
export const AnthropicThinkingBlock1TypeEnum = {
    Thinking: 'thinking'
} as const;
export type AnthropicThinkingBlock1TypeEnum = typeof AnthropicThinkingBlock1TypeEnum[keyof typeof AnthropicThinkingBlock1TypeEnum];


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

export function AnthropicThinkingBlock1FromJSON(json: any): AnthropicThinkingBlock1 {
    return AnthropicThinkingBlock1FromJSONTyped(json, false);
}

export function AnthropicThinkingBlock1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnthropicThinkingBlock1 {
    if (json == null) {
        return json;
    }
    return {
        
        'type': json['type'] == null ? undefined : json['type'],
        'thinking': json['thinking'] == null ? undefined : json['thinking'],
    };
}

export function AnthropicThinkingBlock1ToJSON(json: any): AnthropicThinkingBlock1 {
    return AnthropicThinkingBlock1ToJSONTyped(json, false);
}

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

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

