"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.instanceOfConnectionTokenRequest = instanceOfConnectionTokenRequest;
exports.ConnectionTokenRequestFromJSON = ConnectionTokenRequestFromJSON;
exports.ConnectionTokenRequestFromJSONTyped = ConnectionTokenRequestFromJSONTyped;
exports.ConnectionTokenRequestToJSON = ConnectionTokenRequestToJSON;
exports.ConnectionTokenRequestToJSONTyped = ConnectionTokenRequestToJSONTyped;
/**
 * Check if a given object implements the ConnectionTokenRequest interface.
 */
function instanceOfConnectionTokenRequest(value) {
    if (!('provider' in value) || value['provider'] === undefined)
        return false;
    if (!('endpoint' in value) || value['endpoint'] === undefined)
        return false;
    return true;
}
function ConnectionTokenRequestFromJSON(json) {
    return ConnectionTokenRequestFromJSONTyped(json, false);
}
function ConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'] == null ? undefined : json['pk'],
        'provider': json['provider'],
        'endpoint': json['endpoint'],
    };
}
function ConnectionTokenRequestToJSON(json) {
    return ConnectionTokenRequestToJSONTyped(json, false);
}
function ConnectionTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'pk': value['pk'],
        'provider': value['provider'],
        'endpoint': value['endpoint'],
    };
}
//# sourceMappingURL=ConnectionTokenRequest.js.map