"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfTenantRequest = instanceOfTenantRequest;
exports.TenantRequestFromJSON = TenantRequestFromJSON;
exports.TenantRequestFromJSONTyped = TenantRequestFromJSONTyped;
exports.TenantRequestToJSON = TenantRequestToJSON;
exports.TenantRequestToJSONTyped = TenantRequestToJSONTyped;
/**
 * Check if a given object implements the TenantRequest interface.
 */
function instanceOfTenantRequest(value) {
    if (!('schemaName' in value) || value['schemaName'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function TenantRequestFromJSON(json) {
    return TenantRequestFromJSONTyped(json, false);
}
function TenantRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'schemaName': json['schema_name'],
        'name': json['name'],
        'ready': json['ready'] == null ? undefined : json['ready'],
    };
}
function TenantRequestToJSON(json) {
    return TenantRequestToJSONTyped(json, false);
}
function TenantRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'schema_name': value['schemaName'],
        'name': value['name'],
        'ready': value['ready'],
    };
}
//# sourceMappingURL=TenantRequest.js.map