"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.instanceOfTenantRecoveryKeyResponse = instanceOfTenantRecoveryKeyResponse;
exports.TenantRecoveryKeyResponseFromJSON = TenantRecoveryKeyResponseFromJSON;
exports.TenantRecoveryKeyResponseFromJSONTyped = TenantRecoveryKeyResponseFromJSONTyped;
exports.TenantRecoveryKeyResponseToJSON = TenantRecoveryKeyResponseToJSON;
exports.TenantRecoveryKeyResponseToJSONTyped = TenantRecoveryKeyResponseToJSONTyped;
/**
 * Check if a given object implements the TenantRecoveryKeyResponse interface.
 */
function instanceOfTenantRecoveryKeyResponse(value) {
    if (!('expiry' in value) || value['expiry'] === undefined)
        return false;
    if (!('url' in value) || value['url'] === undefined)
        return false;
    return true;
}
function TenantRecoveryKeyResponseFromJSON(json) {
    return TenantRecoveryKeyResponseFromJSONTyped(json, false);
}
function TenantRecoveryKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'expiry': (new Date(json['expiry'])),
        'url': json['url'],
    };
}
function TenantRecoveryKeyResponseToJSON(json) {
    return TenantRecoveryKeyResponseToJSONTyped(json, false);
}
function TenantRecoveryKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'expiry': ((value['expiry']).toISOString()),
        'url': value['url'],
    };
}
//# sourceMappingURL=TenantRecoveryKeyResponse.js.map