/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * Get CertificateKeyPair's data
 * @export
 * @interface CertificateData
 */
export interface CertificateData {
    /**
     *
     * @type {string}
     * @memberof CertificateData
     */
    readonly data: string;
}

/**
 * Check if a given object implements the CertificateData interface.
 */
export function instanceOfCertificateData(value: object): value is CertificateData {
    if (!("data" in value) || value["data"] === undefined) return false;
    return true;
}

export function CertificateDataFromJSON(json: any): CertificateData {
    return CertificateDataFromJSONTyped(json, false);
}

export function CertificateDataFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): CertificateData {
    if (json == null) {
        return json;
    }
    return {
        data: json["data"],
    };
}

export function CertificateDataToJSON(json: any): CertificateData {
    return CertificateDataToJSONTyped(json, false);
}

export function CertificateDataToJSONTyped(
    value?: Omit<CertificateData, "data"> | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {};
}
