"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.instanceOfDeviceUserBindingRequest = instanceOfDeviceUserBindingRequest;
exports.DeviceUserBindingRequestFromJSON = DeviceUserBindingRequestFromJSON;
exports.DeviceUserBindingRequestFromJSONTyped = DeviceUserBindingRequestFromJSONTyped;
exports.DeviceUserBindingRequestToJSON = DeviceUserBindingRequestToJSON;
exports.DeviceUserBindingRequestToJSONTyped = DeviceUserBindingRequestToJSONTyped;
/**
 * Check if a given object implements the DeviceUserBindingRequest interface.
 */
function instanceOfDeviceUserBindingRequest(value) {
    if (!('target' in value) || value['target'] === undefined)
        return false;
    if (!('order' in value) || value['order'] === undefined)
        return false;
    return true;
}
function DeviceUserBindingRequestFromJSON(json) {
    return DeviceUserBindingRequestFromJSONTyped(json, false);
}
function DeviceUserBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'policy': json['policy'] == null ? undefined : json['policy'],
        'group': json['group'] == null ? undefined : json['group'],
        'user': json['user'] == null ? undefined : json['user'],
        'target': json['target'],
        'negate': json['negate'] == null ? undefined : json['negate'],
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'order': json['order'],
        'timeout': json['timeout'] == null ? undefined : json['timeout'],
        'failureResult': json['failure_result'] == null ? undefined : json['failure_result'],
        'isPrimary': json['is_primary'] == null ? undefined : json['is_primary'],
    };
}
function DeviceUserBindingRequestToJSON(json) {
    return DeviceUserBindingRequestToJSONTyped(json, false);
}
function DeviceUserBindingRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'policy': value['policy'],
        'group': value['group'],
        'user': value['user'],
        'target': value['target'],
        'negate': value['negate'],
        'enabled': value['enabled'],
        'order': value['order'],
        'timeout': value['timeout'],
        'failure_result': value['failureResult'],
        'is_primary': value['isPrimary'],
    };
}
//# sourceMappingURL=DeviceUserBindingRequest.js.map