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

/**
 * Mixin to validate that a valid enterprise license
 * exists before allowing to save the object
 * @export
 * @interface ReviewRequest
 */
export interface ReviewRequest {
    /**
     *
     * @type {string}
     * @memberof ReviewRequest
     */
    iteration: string;
    /**
     *
     * @type {string}
     * @memberof ReviewRequest
     */
    note?: string | null;
}

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

export function ReviewRequestFromJSON(json: any): ReviewRequest {
    return ReviewRequestFromJSONTyped(json, false);
}

export function ReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewRequest {
    if (json == null) {
        return json;
    }
    return {
        iteration: json["iteration"],
        note: json["note"] == null ? undefined : json["note"],
    };
}

export function ReviewRequestToJSON(json: any): ReviewRequest {
    return ReviewRequestToJSONTyped(json, false);
}

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

    return {
        iteration: value["iteration"],
        note: value["note"],
    };
}
