/* 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';
/**
 * Payload to set a users' password directly
 * @export
 * @interface UserPasswordSetRequest
 */
export interface UserPasswordSetRequest {
    /**
     * 
     * @type {string}
     * @memberof UserPasswordSetRequest
     */
    password: string;
}

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

export function UserPasswordSetRequestFromJSON(json: any): UserPasswordSetRequest {
    return UserPasswordSetRequestFromJSONTyped(json, false);
}

export function UserPasswordSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasswordSetRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'password': json['password'],
    };
}

export function UserPasswordSetRequestToJSON(json: any): UserPasswordSetRequest {
    return UserPasswordSetRequestToJSONTyped(json, false);
}

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

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

