/* 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';
/**
 * User login challenge
 * @export
 * @interface UserLoginChallengeResponseRequest
 */
export interface UserLoginChallengeResponseRequest {
    /**
     * 
     * @type {string}
     * @memberof UserLoginChallengeResponseRequest
     */
    component?: string;
    /**
     * 
     * @type {boolean}
     * @memberof UserLoginChallengeResponseRequest
     */
    rememberMe: boolean;
}

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

export function UserLoginChallengeResponseRequestFromJSON(json: any): UserLoginChallengeResponseRequest {
    return UserLoginChallengeResponseRequestFromJSONTyped(json, false);
}

export function UserLoginChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginChallengeResponseRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'component': json['component'] == null ? undefined : json['component'],
        'rememberMe': json['remember_me'],
    };
}

export function UserLoginChallengeResponseRequestToJSON(json: any): UserLoginChallengeResponseRequest {
    return UserLoginChallengeResponseRequestToJSONTyped(json, false);
}

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

    return {
        
        'component': value['component'],
        'remember_me': value['rememberMe'],
    };
}

