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