/* 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.
 */

/**
 * Account adding/removing operations
 * @export
 * @interface UserAccountRequest
 */
export interface UserAccountRequest {
    /**
     *
     * @type {number}
     * @memberof UserAccountRequest
     */
    pk: number;
}

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

export function UserAccountRequestFromJSON(json: any): UserAccountRequest {
    return UserAccountRequestFromJSONTyped(json, false);
}

export function UserAccountRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): UserAccountRequest {
    if (json == null) {
        return json;
    }
    return {
        pk: json["pk"],
    };
}

export function UserAccountRequestToJSON(json: any): UserAccountRequest {
    return UserAccountRequestToJSONTyped(json, false);
}

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

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