"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.instanceOfPromptRequest = instanceOfPromptRequest;
exports.PromptRequestFromJSON = PromptRequestFromJSON;
exports.PromptRequestFromJSONTyped = PromptRequestFromJSONTyped;
exports.PromptRequestToJSON = PromptRequestToJSON;
exports.PromptRequestToJSONTyped = PromptRequestToJSONTyped;
const PromptTypeEnum_1 = require("./PromptTypeEnum");
/**
 * Check if a given object implements the PromptRequest interface.
 */
function instanceOfPromptRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    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;
    return true;
}
function PromptRequestFromJSON(json) {
    return PromptRequestFromJSONTyped(json, false);
}
function PromptRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'fieldKey': json['field_key'],
        'label': json['label'],
        'type': (0, PromptTypeEnum_1.PromptTypeEnumFromJSON)(json['type']),
        'required': json['required'] == null ? undefined : json['required'],
        'placeholder': json['placeholder'] == null ? undefined : json['placeholder'],
        'initialValue': json['initial_value'] == null ? undefined : json['initial_value'],
        'order': json['order'] == null ? undefined : json['order'],
        'subText': json['sub_text'] == null ? undefined : json['sub_text'],
        'placeholderExpression': json['placeholder_expression'] == null ? undefined : json['placeholder_expression'],
        'initialValueExpression': json['initial_value_expression'] == null ? undefined : json['initial_value_expression'],
    };
}
function PromptRequestToJSON(json) {
    return PromptRequestToJSONTyped(json, false);
}
function PromptRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        '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'],
        'placeholder_expression': value['placeholderExpression'],
        'initial_value_expression': value['initialValueExpression'],
    };
}
//# sourceMappingURL=PromptRequest.js.map