"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.instanceOfPatchedEventRequest = instanceOfPatchedEventRequest;
exports.PatchedEventRequestFromJSON = PatchedEventRequestFromJSON;
exports.PatchedEventRequestFromJSONTyped = PatchedEventRequestFromJSONTyped;
exports.PatchedEventRequestToJSON = PatchedEventRequestToJSON;
exports.PatchedEventRequestToJSONTyped = PatchedEventRequestToJSONTyped;
const EventActions_1 = require("./EventActions");
/**
 * Check if a given object implements the PatchedEventRequest interface.
 */
function instanceOfPatchedEventRequest(value) {
    return true;
}
function PatchedEventRequestFromJSON(json) {
    return PatchedEventRequestFromJSONTyped(json, false);
}
function PatchedEventRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'user': json['user'] == null ? undefined : json['user'],
        'action': json['action'] == null ? undefined : (0, EventActions_1.EventActionsFromJSON)(json['action']),
        'app': json['app'] == null ? undefined : json['app'],
        'context': json['context'] == null ? undefined : json['context'],
        'clientIp': json['client_ip'] == null ? undefined : json['client_ip'],
        'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
        'brand': json['brand'] == null ? undefined : json['brand'],
    };
}
function PatchedEventRequestToJSON(json) {
    return PatchedEventRequestToJSONTyped(json, false);
}
function PatchedEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'user': value['user'],
        'action': (0, EventActions_1.EventActionsToJSON)(value['action']),
        'app': value['app'],
        'context': value['context'],
        'client_ip': value['clientIp'],
        'expires': value['expires'] == null ? value['expires'] : value['expires'].toISOString(),
        'brand': value['brand'],
    };
}
//# sourceMappingURL=PatchedEventRequest.js.map