/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * Base serializer class which doesn't implement create/update methods
 * @export
 * @interface AgentAuthenticationResponse
 */
export interface AgentAuthenticationResponse {
    /**
     *
     * @type {string}
     * @memberof AgentAuthenticationResponse
     */
    url: string;
}

/**
 * Check if a given object implements the AgentAuthenticationResponse interface.
 */
export function instanceOfAgentAuthenticationResponse(
    value: object,
): value is AgentAuthenticationResponse {
    if (!("url" in value) || value["url"] === undefined) return false;
    return true;
}

export function AgentAuthenticationResponseFromJSON(json: any): AgentAuthenticationResponse {
    return AgentAuthenticationResponseFromJSONTyped(json, false);
}

export function AgentAuthenticationResponseFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): AgentAuthenticationResponse {
    if (json == null) {
        return json;
    }
    return {
        url: json["url"],
    };
}

export function AgentAuthenticationResponseToJSON(json: any): AgentAuthenticationResponse {
    return AgentAuthenticationResponseToJSONTyped(json, false);
}

export function AgentAuthenticationResponseToJSONTyped(
    value?: AgentAuthenticationResponse | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        url: value["url"],
    };
}
