/* tslint:disable */
/* eslint-disable */
/**
 * Montelo
 * Documentation for the Montelo API.
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface SetCohereApiKeyInput
 */
export interface SetCohereApiKeyInput {
    /**
     * 
     * @type {string}
     * @memberof SetCohereApiKeyInput
     */
    key: string;
}

/**
 * Check if a given object implements the SetCohereApiKeyInput interface.
 */
export function instanceOfSetCohereApiKeyInput(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "key" in value;

    return isInstance;
}

export function SetCohereApiKeyInputFromJSON(json: any): SetCohereApiKeyInput {
    return SetCohereApiKeyInputFromJSONTyped(json, false);
}

export function SetCohereApiKeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetCohereApiKeyInput {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'key': json['key'],
    };
}

export function SetCohereApiKeyInputToJSON(value?: SetCohereApiKeyInput | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'key': value.key,
    };
}

