"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.instanceOfMDMConfigRequest = instanceOfMDMConfigRequest;
exports.MDMConfigRequestFromJSON = MDMConfigRequestFromJSON;
exports.MDMConfigRequestFromJSONTyped = MDMConfigRequestFromJSONTyped;
exports.MDMConfigRequestToJSON = MDMConfigRequestToJSON;
exports.MDMConfigRequestToJSONTyped = MDMConfigRequestToJSONTyped;
const DeviceFactsOSFamily_1 = require("./DeviceFactsOSFamily");
/**
 * Check if a given object implements the MDMConfigRequest interface.
 */
function instanceOfMDMConfigRequest(value) {
    if (!('platform' in value) || value['platform'] === undefined)
        return false;
    if (!('enrollmentToken' in value) || value['enrollmentToken'] === undefined)
        return false;
    return true;
}
function MDMConfigRequestFromJSON(json) {
    return MDMConfigRequestFromJSONTyped(json, false);
}
function MDMConfigRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'platform': (0, DeviceFactsOSFamily_1.DeviceFactsOSFamilyFromJSON)(json['platform']),
        'enrollmentToken': json['enrollment_token'],
    };
}
function MDMConfigRequestToJSON(json) {
    return MDMConfigRequestToJSONTyped(json, false);
}
function MDMConfigRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'platform': (0, DeviceFactsOSFamily_1.DeviceFactsOSFamilyToJSON)(value['platform']),
        'enrollment_token': value['enrollmentToken'],
    };
}
//# sourceMappingURL=MDMConfigRequest.js.map