/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.
 */

import { mapValues } from '../runtime';
/**
 * Tenant Serializer
 * @export
 * @interface PatchedTenantRequest
 */
export interface PatchedTenantRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedTenantRequest
     */
    schemaName?: string;
    /**
     * 
     * @type {string}
     * @memberof PatchedTenantRequest
     */
    name?: string;
    /**
     * 
     * @type {boolean}
     * @memberof PatchedTenantRequest
     */
    ready?: boolean;
}

/**
 * Check if a given object implements the PatchedTenantRequest interface.
 */
export function instanceOfPatchedTenantRequest(value: object): value is PatchedTenantRequest {
    return true;
}

export function PatchedTenantRequestFromJSON(json: any): PatchedTenantRequest {
    return PatchedTenantRequestFromJSONTyped(json, false);
}

export function PatchedTenantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedTenantRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'schemaName': json['schema_name'] == null ? undefined : json['schema_name'],
        'name': json['name'] == null ? undefined : json['name'],
        'ready': json['ready'] == null ? undefined : json['ready'],
    };
}

export function PatchedTenantRequestToJSON(json: any): PatchedTenantRequest {
    return PatchedTenantRequestToJSONTyped(json, false);
}

export function PatchedTenantRequestToJSONTyped(value?: PatchedTenantRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'schema_name': value['schemaName'],
        'name': value['name'],
        'ready': value['ready'],
    };
}

