/* 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 DomainRequest */ export interface DomainRequest { /** * * @type {string} * @memberof DomainRequest */ domain: string; /** * * @type {boolean} * @memberof DomainRequest */ isPrimary?: boolean; /** * * @type {string} * @memberof DomainRequest */ tenant: string; } /** * Check if a given object implements the DomainRequest interface. */ export function instanceOfDomainRequest(value: object): value is DomainRequest { if (!('domain' in value) || value['domain'] === undefined) return false; if (!('tenant' in value) || value['tenant'] === undefined) return false; return true; } export function DomainRequestFromJSON(json: any): DomainRequest { return DomainRequestFromJSONTyped(json, false); } export function DomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainRequest { if (json == null) { return json; } return { 'domain': json['domain'], 'isPrimary': json['is_primary'] == null ? undefined : json['is_primary'], 'tenant': json['tenant'], }; } export function DomainRequestToJSON(json: any): DomainRequest { return DomainRequestToJSONTyped(json, false); } export function DomainRequestToJSONTyped(value?: DomainRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'domain': value['domain'], 'is_primary': value['isPrimary'], 'tenant': value['tenant'], }; }