"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.instanceOfPatchedLifecycleRuleRequest = instanceOfPatchedLifecycleRuleRequest;
exports.PatchedLifecycleRuleRequestFromJSON = PatchedLifecycleRuleRequestFromJSON;
exports.PatchedLifecycleRuleRequestFromJSONTyped = PatchedLifecycleRuleRequestFromJSONTyped;
exports.PatchedLifecycleRuleRequestToJSON = PatchedLifecycleRuleRequestToJSON;
exports.PatchedLifecycleRuleRequestToJSONTyped = PatchedLifecycleRuleRequestToJSONTyped;
const ContentTypeEnum_1 = require("./ContentTypeEnum");
/**
 * Check if a given object implements the PatchedLifecycleRuleRequest interface.
 */
function instanceOfPatchedLifecycleRuleRequest(value) {
    return true;
}
function PatchedLifecycleRuleRequestFromJSON(json) {
    return PatchedLifecycleRuleRequestFromJSONTyped(json, false);
}
function PatchedLifecycleRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'contentType': json['content_type'] == null ? undefined : (0, ContentTypeEnum_1.ContentTypeEnumFromJSON)(json['content_type']),
        'objectId': json['object_id'] == null ? undefined : json['object_id'],
        'interval': json['interval'] == null ? undefined : json['interval'],
        'gracePeriod': json['grace_period'] == null ? undefined : json['grace_period'],
        'reviewerGroups': json['reviewer_groups'] == null ? undefined : json['reviewer_groups'],
        'minReviewers': json['min_reviewers'] == null ? undefined : json['min_reviewers'],
        'minReviewersIsPerGroup': json['min_reviewers_is_per_group'] == null ? undefined : json['min_reviewers_is_per_group'],
        'reviewers': json['reviewers'] == null ? undefined : json['reviewers'],
        'notificationTransports': json['notification_transports'] == null ? undefined : json['notification_transports'],
    };
}
function PatchedLifecycleRuleRequestToJSON(json) {
    return PatchedLifecycleRuleRequestToJSONTyped(json, false);
}
function PatchedLifecycleRuleRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'content_type': (0, ContentTypeEnum_1.ContentTypeEnumToJSON)(value['contentType']),
        'object_id': value['objectId'],
        'interval': value['interval'],
        'grace_period': value['gracePeriod'],
        'reviewer_groups': value['reviewerGroups'],
        'min_reviewers': value['minReviewers'],
        'min_reviewers_is_per_group': value['minReviewersIsPerGroup'],
        'reviewers': value['reviewers'],
        'notification_transports': value['notificationTransports'],
    };
}
//# sourceMappingURL=PatchedLifecycleRuleRequest.js.map