"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.instanceOfInvitationRequest = instanceOfInvitationRequest;
exports.InvitationRequestFromJSON = InvitationRequestFromJSON;
exports.InvitationRequestFromJSONTyped = InvitationRequestFromJSONTyped;
exports.InvitationRequestToJSON = InvitationRequestToJSON;
exports.InvitationRequestToJSONTyped = InvitationRequestToJSONTyped;
/**
 * Check if a given object implements the InvitationRequest interface.
 */
function instanceOfInvitationRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function InvitationRequestFromJSON(json) {
    return InvitationRequestFromJSONTyped(json, false);
}
function InvitationRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': 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 InvitationRequestToJSON(json) {
    return InvitationRequestToJSONTyped(json, false);
}
function InvitationRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'expires': value['expires'] == null ? value['expires'] : value['expires'].toISOString(),
        'fixed_data': value['fixedData'],
        'single_use': value['singleUse'],
        'flow': value['flow'],
    };
}
//# sourceMappingURL=InvitationRequest.js.map