"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetCohereApiKeyInputToJSON = exports.SetCohereApiKeyInputFromJSONTyped = exports.SetCohereApiKeyInputFromJSON = exports.instanceOfSetCohereApiKeyInput = void 0;
/**
 * Check if a given object implements the SetCohereApiKeyInput interface.
 */
function instanceOfSetCohereApiKeyInput(value) {
    let isInstance = true;
    isInstance = isInstance && "key" in value;
    return isInstance;
}
exports.instanceOfSetCohereApiKeyInput = instanceOfSetCohereApiKeyInput;
function SetCohereApiKeyInputFromJSON(json) {
    return SetCohereApiKeyInputFromJSONTyped(json, false);
}
exports.SetCohereApiKeyInputFromJSON = SetCohereApiKeyInputFromJSON;
function SetCohereApiKeyInputFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'key': json['key'],
    };
}
exports.SetCohereApiKeyInputFromJSONTyped = SetCohereApiKeyInputFromJSONTyped;
function SetCohereApiKeyInputToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'key': value.key,
    };
}
exports.SetCohereApiKeyInputToJSON = SetCohereApiKeyInputToJSON;
