"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfEnrollmentTokenRequest = instanceOfEnrollmentTokenRequest;
exports.EnrollmentTokenRequestFromJSON = EnrollmentTokenRequestFromJSON;
exports.EnrollmentTokenRequestFromJSONTyped = EnrollmentTokenRequestFromJSONTyped;
exports.EnrollmentTokenRequestToJSON = EnrollmentTokenRequestToJSON;
exports.EnrollmentTokenRequestToJSONTyped = EnrollmentTokenRequestToJSONTyped;
/**
 * Check if a given object implements the EnrollmentTokenRequest interface.
 */
function instanceOfEnrollmentTokenRequest(value) {
    if (!('connector' in value) || value['connector'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function EnrollmentTokenRequestFromJSON(json) {
    return EnrollmentTokenRequestFromJSONTyped(json, false);
}
function EnrollmentTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'deviceGroup': json['device_group'] == null ? undefined : json['device_group'],
        'connector': json['connector'],
        'name': json['name'],
        'expiring': json['expiring'] == null ? undefined : json['expiring'],
        'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
    };
}
function EnrollmentTokenRequestToJSON(json) {
    return EnrollmentTokenRequestToJSONTyped(json, false);
}
function EnrollmentTokenRequestToJSONTyped(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=EnrollmentTokenRequest.js.map