"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfEnrollRequest = instanceOfEnrollRequest;
exports.EnrollRequestFromJSON = EnrollRequestFromJSON;
exports.EnrollRequestFromJSONTyped = EnrollRequestFromJSONTyped;
exports.EnrollRequestToJSON = EnrollRequestToJSON;
exports.EnrollRequestToJSONTyped = EnrollRequestToJSONTyped;
/**
 * Check if a given object implements the EnrollRequest interface.
 */
function instanceOfEnrollRequest(value) {
    if (!('deviceSerial' in value) || value['deviceSerial'] === undefined)
        return false;
    if (!('deviceName' in value) || value['deviceName'] === undefined)
        return false;
    return true;
}
function EnrollRequestFromJSON(json) {
    return EnrollRequestFromJSONTyped(json, false);
}
function EnrollRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'deviceSerial': json['device_serial'],
        'deviceName': json['device_name'],
    };
}
function EnrollRequestToJSON(json) {
    return EnrollRequestToJSONTyped(json, false);
}
function EnrollRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'device_serial': value['deviceSerial'],
        'device_name': value['deviceName'],
    };
}
//# sourceMappingURL=EnrollRequest.js.map