"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.instanceOfProviderRequest = instanceOfProviderRequest;
exports.ProviderRequestFromJSON = ProviderRequestFromJSON;
exports.ProviderRequestFromJSONTyped = ProviderRequestFromJSONTyped;
exports.ProviderRequestToJSON = ProviderRequestToJSON;
exports.ProviderRequestToJSONTyped = ProviderRequestToJSONTyped;
/**
 * Check if a given object implements the ProviderRequest interface.
 */
function instanceOfProviderRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('authorizationFlow' in value) || value['authorizationFlow'] === undefined)
        return false;
    if (!('invalidationFlow' in value) || value['invalidationFlow'] === undefined)
        return false;
    return true;
}
function ProviderRequestFromJSON(json) {
    return ProviderRequestFromJSONTyped(json, false);
}
function ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'authenticationFlow': json['authentication_flow'] == null ? undefined : json['authentication_flow'],
        'authorizationFlow': json['authorization_flow'],
        'invalidationFlow': json['invalidation_flow'],
        'propertyMappings': json['property_mappings'] == null ? undefined : json['property_mappings'],
    };
}
function ProviderRequestToJSON(json) {
    return ProviderRequestToJSONTyped(json, false);
}
function ProviderRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'authentication_flow': value['authenticationFlow'],
        'authorization_flow': value['authorizationFlow'],
        'invalidation_flow': value['invalidationFlow'],
        'property_mappings': value['propertyMappings'],
    };
}
//# sourceMappingURL=ProviderRequest.js.map