"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.instanceOfTransactionPolicyBindingRequest = instanceOfTransactionPolicyBindingRequest;
exports.TransactionPolicyBindingRequestFromJSON = TransactionPolicyBindingRequestFromJSON;
exports.TransactionPolicyBindingRequestFromJSONTyped = TransactionPolicyBindingRequestFromJSONTyped;
exports.TransactionPolicyBindingRequestToJSON = TransactionPolicyBindingRequestToJSON;
exports.TransactionPolicyBindingRequestToJSONTyped = TransactionPolicyBindingRequestToJSONTyped;
/**
 * Check if a given object implements the TransactionPolicyBindingRequest interface.
 */
function instanceOfTransactionPolicyBindingRequest(value) {
    if (!('order' in value) || value['order'] === undefined)
        return false;
    return true;
}
function TransactionPolicyBindingRequestFromJSON(json) {
    return TransactionPolicyBindingRequestFromJSONTyped(json, false);
}
function TransactionPolicyBindingRequestFromJSONTyped(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'],
        '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'],
    };
}
function TransactionPolicyBindingRequestToJSON(json) {
    return TransactionPolicyBindingRequestToJSONTyped(json, false);
}
function TransactionPolicyBindingRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'policy': value['policy'],
        'group': value['group'],
        'user': value['user'],
        'negate': value['negate'],
        'enabled': value['enabled'],
        'order': value['order'],
        'timeout': value['timeout'],
        'failure_result': value['failureResult'],
    };
}
//# sourceMappingURL=TransactionPolicyBindingRequest.js.map