"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.instanceOfWorker = instanceOfWorker;
exports.WorkerFromJSON = WorkerFromJSON;
exports.WorkerFromJSONTyped = WorkerFromJSONTyped;
exports.WorkerToJSON = WorkerToJSON;
exports.WorkerToJSONTyped = WorkerToJSONTyped;
/**
 * Check if a given object implements the Worker interface.
 */
function instanceOfWorker(value) {
    if (!('workerId' in value) || value['workerId'] === undefined)
        return false;
    if (!('version' in value) || value['version'] === undefined)
        return false;
    if (!('versionMatching' in value) || value['versionMatching'] === undefined)
        return false;
    return true;
}
function WorkerFromJSON(json) {
    return WorkerFromJSONTyped(json, false);
}
function WorkerFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'workerId': json['worker_id'],
        'version': json['version'],
        'versionMatching': json['version_matching'],
    };
}
function WorkerToJSON(json) {
    return WorkerToJSONTyped(json, false);
}
function WorkerToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'worker_id': value['workerId'],
        'version': value['version'],
        'version_matching': value['versionMatching'],
    };
}
//# sourceMappingURL=Worker.js.map