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

/**
 * Generic cache stats for an object
 * @export
 * @interface Cache
 */
export interface Cache {
    /**
     *
     * @type {number}
     * @memberof Cache
     */
    readonly count: number;
}

/**
 * Check if a given object implements the Cache interface.
 */
export function instanceOfCache(value: object): value is Cache {
    if (!("count" in value) || value["count"] === undefined) return false;
    return true;
}

export function CacheFromJSON(json: any): Cache {
    return CacheFromJSONTyped(json, false);
}

export function CacheFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cache {
    if (json == null) {
        return json;
    }
    return {
        count: json["count"],
    };
}

export function CacheToJSON(json: any): Cache {
    return CacheToJSONTyped(json, false);
}

export function CacheToJSONTyped(
    value?: Omit<Cache, "count"> | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {};
}
