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

/**
 *
 * @export
 * @interface ReviewerUser
 */
export interface ReviewerUser {
    /**
     *
     * @type {number}
     * @memberof ReviewerUser
     */
    readonly pk: number;
    /**
     *
     * @type {string}
     * @memberof ReviewerUser
     */
    readonly uuid: string;
    /**
     * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
     * @type {string}
     * @memberof ReviewerUser
     */
    username: string;
    /**
     * User's display name.
     * @type {string}
     * @memberof ReviewerUser
     */
    name: string;
}

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

export function ReviewerUserFromJSON(json: any): ReviewerUser {
    return ReviewerUserFromJSONTyped(json, false);
}

export function ReviewerUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewerUser {
    if (json == null) {
        return json;
    }
    return {
        pk: json["pk"],
        uuid: json["uuid"],
        username: json["username"],
        name: json["name"],
    };
}

export function ReviewerUserToJSON(json: any): ReviewerUser {
    return ReviewerUserToJSONTyped(json, false);
}

export function ReviewerUserToJSONTyped(
    value?: Omit<ReviewerUser, "pk" | "uuid"> | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        username: value["username"],
        name: value["name"],
    };
}
