"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfPatchedInvitationRequest = instanceOfPatchedInvitationRequest;
exports.PatchedInvitationRequestFromJSON = PatchedInvitationRequestFromJSON;
exports.PatchedInvitationRequestFromJSONTyped = PatchedInvitationRequestFromJSONTyped;
exports.PatchedInvitationRequestToJSON = PatchedInvitationRequestToJSON;
exports.PatchedInvitationRequestToJSONTyped = PatchedInvitationRequestToJSONTyped;
/**
 * Check if a given object implements the PatchedInvitationRequest interface.
 */
function instanceOfPatchedInvitationRequest(value) {
    return true;
}
function PatchedInvitationRequestFromJSON(json) {
    return PatchedInvitationRequestFromJSONTyped(json, false);
}
function PatchedInvitationRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
        'fixedData': json['fixed_data'] == null ? undefined : json['fixed_data'],
        'singleUse': json['single_use'] == null ? undefined : json['single_use'],
        'flow': json['flow'] == null ? undefined : json['flow'],
    };
}
function PatchedInvitationRequestToJSON(json) {
    return PatchedInvitationRequestToJSONTyped(json, false);
}
function PatchedInvitationRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'expires': value['expires'] === null ? null : (value['expires']?.toISOString()),
        'fixed_data': value['fixedData'],
        'single_use': value['singleUse'],
        'flow': value['flow'],
    };
}
//# sourceMappingURL=PatchedInvitationRequest.js.map