/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * 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. */ import { mapValues } from '../runtime'; /** * Domain Serializer * @export * @interface Domain */ export interface Domain { /** * * @type {number} * @memberof Domain */ readonly id: number; /** * * @type {string} * @memberof Domain */ domain: string; /** * * @type {boolean} * @memberof Domain */ isPrimary?: boolean; /** * * @type {string} * @memberof Domain */ tenant: string; } /** * Check if a given object implements the Domain interface. */ export function instanceOfDomain(value: object): value is Domain { 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; } export function DomainFromJSON(json: any): Domain { return DomainFromJSONTyped(json, false); } export function DomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): Domain { if (json == null) { return json; } return { 'id': json['id'], 'domain': json['domain'], 'isPrimary': json['is_primary'] == null ? undefined : json['is_primary'], 'tenant': json['tenant'], }; } export function DomainToJSON(json: any): Domain { return DomainToJSONTyped(json, false); } export function DomainToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'domain': value['domain'], 'is_primary': value['isPrimary'], 'tenant': value['tenant'], }; }