/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * 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';
/**
 * 
 * @export
 * @interface ResetUserPasswordRequest
 */
export interface ResetUserPasswordRequest {
    /**
     * 
     * @type {string}
     * @memberof ResetUserPasswordRequest
     */
    mode?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ResetUserPasswordRequest
     */
    initialPassword?: string | null;
    /**
     * 
     * @type {number}
     * @memberof ResetUserPasswordRequest
     */
    pinValidityDays?: number | null;
}

/**
 * Check if a given object implements the ResetUserPasswordRequest interface.
 */
export function instanceOfResetUserPasswordRequest(value: object): value is ResetUserPasswordRequest {
    return true;
}

export function ResetUserPasswordRequestFromJSON(json: any): ResetUserPasswordRequest {
    return ResetUserPasswordRequestFromJSONTyped(json, false);
}

export function ResetUserPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetUserPasswordRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'mode': json['mode'] == null ? undefined : json['mode'],
        'initialPassword': json['initialPassword'] == null ? undefined : json['initialPassword'],
        'pinValidityDays': json['pinValidityDays'] == null ? undefined : json['pinValidityDays'],
    };
}

export function ResetUserPasswordRequestToJSON(json: any): ResetUserPasswordRequest {
    return ResetUserPasswordRequestToJSONTyped(json, false);
}

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

    return {
        
        'mode': value['mode'],
        'initialPassword': value['initialPassword'],
        'pinValidityDays': value['pinValidityDays'],
    };
}

