/* 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 SetOpenaiApiKeyInput
 */
export interface SetOpenaiApiKeyInput {
    /**
     * 
     * @type {string}
     * @memberof SetOpenaiApiKeyInput
     */
    key: string;
}

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

    return isInstance;
}

export function SetOpenaiApiKeyInputFromJSON(json: any): SetOpenaiApiKeyInput {
    return SetOpenaiApiKeyInputFromJSONTyped(json, false);
}

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

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

