"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * Contact: hello@goauthentik.io
 *
 * 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.instanceOfCertificateKeyPairRequest = instanceOfCertificateKeyPairRequest;
exports.CertificateKeyPairRequestFromJSON = CertificateKeyPairRequestFromJSON;
exports.CertificateKeyPairRequestFromJSONTyped = CertificateKeyPairRequestFromJSONTyped;
exports.CertificateKeyPairRequestToJSON = CertificateKeyPairRequestToJSON;
exports.CertificateKeyPairRequestToJSONTyped = CertificateKeyPairRequestToJSONTyped;
/**
 * Check if a given object implements the CertificateKeyPairRequest interface.
 */
function instanceOfCertificateKeyPairRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('certificateData' in value) || value['certificateData'] === undefined)
        return false;
    return true;
}
function CertificateKeyPairRequestFromJSON(json) {
    return CertificateKeyPairRequestFromJSONTyped(json, false);
}
function CertificateKeyPairRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'certificateData': json['certificate_data'],
        'keyData': json['key_data'] == null ? undefined : json['key_data'],
    };
}
function CertificateKeyPairRequestToJSON(json) {
    return CertificateKeyPairRequestToJSONTyped(json, false);
}
function CertificateKeyPairRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'certificate_data': value['certificateData'],
        'key_data': value['keyData'],
    };
}
//# sourceMappingURL=CertificateKeyPairRequest.js.map