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

import type { ContentTypeEnum } from "./ContentTypeEnum";
import { ContentTypeEnumFromJSON, ContentTypeEnumToJSON } from "./ContentTypeEnum";

/**
 * Mixin to validate that a valid enterprise license
 * exists before allowing to save the object
 * @export
 * @interface LifecycleIterationRequest
 */
export interface LifecycleIterationRequest {
    /**
     *
     * @type {ContentTypeEnum}
     * @memberof LifecycleIterationRequest
     */
    contentType: ContentTypeEnum;
}

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

export function LifecycleIterationRequestFromJSON(json: any): LifecycleIterationRequest {
    return LifecycleIterationRequestFromJSONTyped(json, false);
}

export function LifecycleIterationRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): LifecycleIterationRequest {
    if (json == null) {
        return json;
    }
    return {
        contentType: ContentTypeEnumFromJSON(json["content_type"]),
    };
}

export function LifecycleIterationRequestToJSON(json: any): LifecycleIterationRequest {
    return LifecycleIterationRequestToJSONTyped(json, false);
}

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

    return {
        content_type: ContentTypeEnumToJSON(value["contentType"]),
    };
}
