"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.instanceOfPatchedEnrollmentTokenRequest = instanceOfPatchedEnrollmentTokenRequest;
exports.PatchedEnrollmentTokenRequestFromJSON = PatchedEnrollmentTokenRequestFromJSON;
exports.PatchedEnrollmentTokenRequestFromJSONTyped = PatchedEnrollmentTokenRequestFromJSONTyped;
exports.PatchedEnrollmentTokenRequestToJSON = PatchedEnrollmentTokenRequestToJSON;
exports.PatchedEnrollmentTokenRequestToJSONTyped = PatchedEnrollmentTokenRequestToJSONTyped;
/**
 * Check if a given object implements the PatchedEnrollmentTokenRequest interface.
 */
function instanceOfPatchedEnrollmentTokenRequest(value) {
    return true;
}
function PatchedEnrollmentTokenRequestFromJSON(json) {
    return PatchedEnrollmentTokenRequestFromJSONTyped(json, false);
}
function PatchedEnrollmentTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'deviceGroup': json['device_group'] == null ? undefined : json['device_group'],
        'connector': json['connector'] == null ? undefined : json['connector'],
        'name': json['name'] == null ? undefined : json['name'],
        'expiring': json['expiring'] == null ? undefined : json['expiring'],
        'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
    };
}
function PatchedEnrollmentTokenRequestToJSON(json) {
    return PatchedEnrollmentTokenRequestToJSONTyped(json, false);
}
function PatchedEnrollmentTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'device_group': value['deviceGroup'],
        'connector': value['connector'],
        'name': value['name'],
        'expiring': value['expiring'],
        'expires': value['expires'] == null ? value['expires'] : value['expires'].toISOString(),
    };
}
//# sourceMappingURL=PatchedEnrollmentTokenRequest.js.map