"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfStagePrompt = instanceOfStagePrompt;
exports.StagePromptFromJSON = StagePromptFromJSON;
exports.StagePromptFromJSONTyped = StagePromptFromJSONTyped;
exports.StagePromptToJSON = StagePromptToJSON;
exports.StagePromptToJSONTyped = StagePromptToJSONTyped;
const PromptTypeEnum_1 = require("./PromptTypeEnum");
/**
 * Check if a given object implements the StagePrompt interface.
 */
function instanceOfStagePrompt(value) {
    if (!('fieldKey' in value) || value['fieldKey'] === undefined)
        return false;
    if (!('label' in value) || value['label'] === undefined)
        return false;
    if (!('type' in value) || value['type'] === undefined)
        return false;
    if (!('required' in value) || value['required'] === undefined)
        return false;
    if (!('placeholder' in value) || value['placeholder'] === undefined)
        return false;
    if (!('initialValue' in value) || value['initialValue'] === undefined)
        return false;
    if (!('order' in value) || value['order'] === undefined)
        return false;
    if (!('subText' in value) || value['subText'] === undefined)
        return false;
    if (!('choices' in value) || value['choices'] === undefined)
        return false;
    return true;
}
function StagePromptFromJSON(json) {
    return StagePromptFromJSONTyped(json, false);
}
function StagePromptFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'fieldKey': json['field_key'],
        'label': json['label'],
        'type': (0, PromptTypeEnum_1.PromptTypeEnumFromJSON)(json['type']),
        'required': json['required'],
        'placeholder': json['placeholder'],
        'initialValue': json['initial_value'],
        'order': json['order'],
        'subText': json['sub_text'],
        'choices': json['choices'] == null ? null : json['choices'],
    };
}
function StagePromptToJSON(json) {
    return StagePromptToJSONTyped(json, false);
}
function StagePromptToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'field_key': value['fieldKey'],
        'label': value['label'],
        'type': (0, PromptTypeEnum_1.PromptTypeEnumToJSON)(value['type']),
        'required': value['required'],
        'placeholder': value['placeholder'],
        'initial_value': value['initialValue'],
        'order': value['order'],
        'sub_text': value['subText'],
        'choices': value['choices'],
    };
}
//# sourceMappingURL=StagePrompt.js.map