"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.instanceOfPatchedDomainRequest = instanceOfPatchedDomainRequest;
exports.PatchedDomainRequestFromJSON = PatchedDomainRequestFromJSON;
exports.PatchedDomainRequestFromJSONTyped = PatchedDomainRequestFromJSONTyped;
exports.PatchedDomainRequestToJSON = PatchedDomainRequestToJSON;
exports.PatchedDomainRequestToJSONTyped = PatchedDomainRequestToJSONTyped;
/**
 * Check if a given object implements the PatchedDomainRequest interface.
 */
function instanceOfPatchedDomainRequest(value) {
    return true;
}
function PatchedDomainRequestFromJSON(json) {
    return PatchedDomainRequestFromJSONTyped(json, false);
}
function PatchedDomainRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'domain': json['domain'] == null ? undefined : json['domain'],
        'isPrimary': json['is_primary'] == null ? undefined : json['is_primary'],
        'tenant': json['tenant'] == null ? undefined : json['tenant'],
    };
}
function PatchedDomainRequestToJSON(json) {
    return PatchedDomainRequestToJSONTyped(json, false);
}
function PatchedDomainRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'domain': value['domain'],
        'is_primary': value['isPrimary'],
        'tenant': value['tenant'],
    };
}
//# sourceMappingURL=PatchedDomainRequest.js.map