/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.2.3-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 { mapValues } from '../runtime'; /** * PromptStage Serializer * @export * @interface PatchedPromptStageRequest */ export interface PatchedPromptStageRequest { /** * * @type {string} * @memberof PatchedPromptStageRequest */ name?: string; /** * * @type {Array} * @memberof PatchedPromptStageRequest */ fields?: Array; /** * * @type {Array} * @memberof PatchedPromptStageRequest */ validationPolicies?: Array; } /** * Check if a given object implements the PatchedPromptStageRequest interface. */ export function instanceOfPatchedPromptStageRequest(value: object): value is PatchedPromptStageRequest { return true; } export function PatchedPromptStageRequestFromJSON(json: any): PatchedPromptStageRequest { return PatchedPromptStageRequestFromJSONTyped(json, false); } export function PatchedPromptStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPromptStageRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'fields': json['fields'] == null ? undefined : json['fields'], 'validationPolicies': json['validation_policies'] == null ? undefined : json['validation_policies'], }; } export function PatchedPromptStageRequestToJSON(json: any): PatchedPromptStageRequest { return PatchedPromptStageRequestToJSONTyped(json, false); } export function PatchedPromptStageRequestToJSONTyped(value?: PatchedPromptStageRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'fields': value['fields'], 'validation_policies': value['validationPolicies'], }; }