"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfTransactionApplicationRequest = instanceOfTransactionApplicationRequest;
exports.TransactionApplicationRequestFromJSON = TransactionApplicationRequestFromJSON;
exports.TransactionApplicationRequestFromJSONTyped = TransactionApplicationRequestFromJSONTyped;
exports.TransactionApplicationRequestToJSON = TransactionApplicationRequestToJSON;
exports.TransactionApplicationRequestToJSONTyped = TransactionApplicationRequestToJSONTyped;
const ProviderModelEnum_1 = require("./ProviderModelEnum");
const ModelRequest_1 = require("./ModelRequest");
const ApplicationRequest_1 = require("./ApplicationRequest");
const TransactionPolicyBindingRequest_1 = require("./TransactionPolicyBindingRequest");
/**
 * Check if a given object implements the TransactionApplicationRequest interface.
 */
function instanceOfTransactionApplicationRequest(value) {
    if (!('app' in value) || value['app'] === undefined)
        return false;
    if (!('providerModel' in value) || value['providerModel'] === undefined)
        return false;
    if (!('provider' in value) || value['provider'] === undefined)
        return false;
    return true;
}
function TransactionApplicationRequestFromJSON(json) {
    return TransactionApplicationRequestFromJSONTyped(json, false);
}
function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'app': (0, ApplicationRequest_1.ApplicationRequestFromJSON)(json['app']),
        'providerModel': (0, ProviderModelEnum_1.ProviderModelEnumFromJSON)(json['provider_model']),
        'provider': (0, ModelRequest_1.ModelRequestFromJSON)(json['provider']),
        'policyBindings': json['policy_bindings'] == null ? undefined : (json['policy_bindings'].map(TransactionPolicyBindingRequest_1.TransactionPolicyBindingRequestFromJSON)),
    };
}
function TransactionApplicationRequestToJSON(json) {
    return TransactionApplicationRequestToJSONTyped(json, false);
}
function TransactionApplicationRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'app': (0, ApplicationRequest_1.ApplicationRequestToJSON)(value['app']),
        'provider_model': (0, ProviderModelEnum_1.ProviderModelEnumToJSON)(value['providerModel']),
        'provider': (0, ModelRequest_1.ModelRequestToJSON)(value['provider']),
        'policy_bindings': value['policyBindings'] == null ? undefined : (value['policyBindings'].map(TransactionPolicyBindingRequest_1.TransactionPolicyBindingRequestToJSON)),
    };
}
//# sourceMappingURL=TransactionApplicationRequest.js.map