"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfEventVolume = instanceOfEventVolume;
exports.EventVolumeFromJSON = EventVolumeFromJSON;
exports.EventVolumeFromJSONTyped = EventVolumeFromJSONTyped;
exports.EventVolumeToJSON = EventVolumeToJSON;
exports.EventVolumeToJSONTyped = EventVolumeToJSONTyped;
const EventActions_1 = require("./EventActions");
/**
 * Check if a given object implements the EventVolume interface.
 */
function instanceOfEventVolume(value) {
    if (!('action' in value) || value['action'] === undefined)
        return false;
    if (!('time' in value) || value['time'] === undefined)
        return false;
    if (!('count' in value) || value['count'] === undefined)
        return false;
    return true;
}
function EventVolumeFromJSON(json) {
    return EventVolumeFromJSONTyped(json, false);
}
function EventVolumeFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'action': (0, EventActions_1.EventActionsFromJSON)(json['action']),
        'time': (new Date(json['time'])),
        'count': json['count'],
    };
}
function EventVolumeToJSON(json) {
    return EventVolumeToJSONTyped(json, false);
}
function EventVolumeToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'action': (0, EventActions_1.EventActionsToJSON)(value['action']),
        'time': value['time'].toISOString(),
        'count': value['count'],
    };
}
//# sourceMappingURL=EventVolume.js.map