/* 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.
 */

/**
 *
 * @export
 * @interface BulkDeleteSessionResponse
 */
export interface BulkDeleteSessionResponse {
    /**
     *
     * @type {number}
     * @memberof BulkDeleteSessionResponse
     */
    deleted: number;
}

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

export function BulkDeleteSessionResponseFromJSON(json: any): BulkDeleteSessionResponse {
    return BulkDeleteSessionResponseFromJSONTyped(json, false);
}

export function BulkDeleteSessionResponseFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): BulkDeleteSessionResponse {
    if (json == null) {
        return json;
    }
    return {
        deleted: json["deleted"],
    };
}

export function BulkDeleteSessionResponseToJSON(json: any): BulkDeleteSessionResponse {
    return BulkDeleteSessionResponseToJSONTyped(json, false);
}

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

    return {
        deleted: value["deleted"],
    };
}
