"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfDomainRequest = instanceOfDomainRequest;
exports.DomainRequestFromJSON = DomainRequestFromJSON;
exports.DomainRequestFromJSONTyped = DomainRequestFromJSONTyped;
exports.DomainRequestToJSON = DomainRequestToJSON;
exports.DomainRequestToJSONTyped = DomainRequestToJSONTyped;
/**
 * Check if a given object implements the DomainRequest interface.
 */
function instanceOfDomainRequest(value) {
    if (!('domain' in value) || value['domain'] === undefined)
        return false;
    if (!('tenant' in value) || value['tenant'] === undefined)
        return false;
    return true;
}
function DomainRequestFromJSON(json) {
    return DomainRequestFromJSONTyped(json, false);
}
function DomainRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'domain': json['domain'],
        'isPrimary': json['is_primary'] == null ? undefined : json['is_primary'],
        'tenant': json['tenant'],
    };
}
function DomainRequestToJSON(json) {
    return DomainRequestToJSONTyped(json, false);
}
function DomainRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'domain': value['domain'],
        'is_primary': value['isPrimary'],
        'tenant': value['tenant'],
    };
}
//# sourceMappingURL=DomainRequest.js.map