"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfEventTopPerUser = instanceOfEventTopPerUser;
exports.EventTopPerUserFromJSON = EventTopPerUserFromJSON;
exports.EventTopPerUserFromJSONTyped = EventTopPerUserFromJSONTyped;
exports.EventTopPerUserToJSON = EventTopPerUserToJSON;
exports.EventTopPerUserToJSONTyped = EventTopPerUserToJSONTyped;
/**
 * Check if a given object implements the EventTopPerUser interface.
 */
function instanceOfEventTopPerUser(value) {
    if (!('application' in value) || value['application'] === undefined)
        return false;
    if (!('countedEvents' in value) || value['countedEvents'] === undefined)
        return false;
    if (!('uniqueUsers' in value) || value['uniqueUsers'] === undefined)
        return false;
    return true;
}
function EventTopPerUserFromJSON(json) {
    return EventTopPerUserFromJSONTyped(json, false);
}
function EventTopPerUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'application': json['application'],
        'countedEvents': json['counted_events'],
        'uniqueUsers': json['unique_users'],
    };
}
function EventTopPerUserToJSON(json) {
    return EventTopPerUserToJSONTyped(json, false);
}
function EventTopPerUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'application': value['application'],
        'counted_events': value['countedEvents'],
        'unique_users': value['uniqueUsers'],
    };
}
//# sourceMappingURL=EventTopPerUser.js.map