"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfReview = instanceOfReview;
exports.ReviewFromJSON = ReviewFromJSON;
exports.ReviewFromJSONTyped = ReviewFromJSONTyped;
exports.ReviewToJSON = ReviewToJSON;
exports.ReviewToJSONTyped = ReviewToJSONTyped;
const ReviewerUser_1 = require("./ReviewerUser");
/**
 * Check if a given object implements the Review interface.
 */
function instanceOfReview(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('iteration' in value) || value['iteration'] === undefined)
        return false;
    if (!('reviewer' in value) || value['reviewer'] === undefined)
        return false;
    if (!('timestamp' in value) || value['timestamp'] === undefined)
        return false;
    return true;
}
function ReviewFromJSON(json) {
    return ReviewFromJSONTyped(json, false);
}
function ReviewFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'iteration': json['iteration'],
        'reviewer': (0, ReviewerUser_1.ReviewerUserFromJSON)(json['reviewer']),
        'timestamp': (new Date(json['timestamp'])),
        'note': json['note'] == null ? undefined : json['note'],
    };
}
function ReviewToJSON(json) {
    return ReviewToJSONTyped(json, false);
}
function ReviewToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'iteration': value['iteration'],
        'note': value['note'],
    };
}
//# sourceMappingURL=Review.js.map