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

import { mapValues } from '../runtime';
/**
 * Password challenge response
 * @export
 * @interface PasswordChallengeResponseRequest
 */
export interface PasswordChallengeResponseRequest {
    /**
     * 
     * @type {string}
     * @memberof PasswordChallengeResponseRequest
     */
    component?: string;
    /**
     * 
     * @type {string}
     * @memberof PasswordChallengeResponseRequest
     */
    password: string;
}

/**
 * Check if a given object implements the PasswordChallengeResponseRequest interface.
 */
export function instanceOfPasswordChallengeResponseRequest(value: object): value is PasswordChallengeResponseRequest {
    if (!('password' in value) || value['password'] === undefined) return false;
    return true;
}

export function PasswordChallengeResponseRequestFromJSON(json: any): PasswordChallengeResponseRequest {
    return PasswordChallengeResponseRequestFromJSONTyped(json, false);
}

export function PasswordChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordChallengeResponseRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'component': json['component'] == null ? undefined : json['component'],
        'password': json['password'],
    };
}

export function PasswordChallengeResponseRequestToJSON(json: any): PasswordChallengeResponseRequest {
    return PasswordChallengeResponseRequestToJSONTyped(json, false);
}

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

    return {
        
        'component': value['component'],
        'password': value['password'],
    };
}

