"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfProcess = instanceOfProcess;
exports.ProcessFromJSON = ProcessFromJSON;
exports.ProcessFromJSONTyped = ProcessFromJSONTyped;
exports.ProcessToJSON = ProcessToJSON;
exports.ProcessToJSONTyped = ProcessToJSONTyped;
/**
 * Check if a given object implements the Process interface.
 */
function instanceOfProcess(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function ProcessFromJSON(json) {
    return ProcessFromJSONTyped(json, false);
}
function ProcessFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'name': json['name'],
        'user': json['user'] == null ? undefined : json['user'],
    };
}
function ProcessToJSON(json) {
    return ProcessToJSONTyped(json, false);
}
function ProcessToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'name': value['name'],
        'user': value['user'],
    };
}
//# sourceMappingURL=Process.js.map