/* 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 ReviewerGroup
 */
export interface ReviewerGroup {
    /**
     *
     * @type {string}
     * @memberof ReviewerGroup
     */
    readonly pk: string;
    /**
     *
     * @type {string}
     * @memberof ReviewerGroup
     */
    name: string;
}

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

export function ReviewerGroupFromJSON(json: any): ReviewerGroup {
    return ReviewerGroupFromJSONTyped(json, false);
}

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

export function ReviewerGroupToJSON(json: any): ReviewerGroup {
    return ReviewerGroupToJSONTyped(json, false);
}

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

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