/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * The version of the OpenAPI document: 0.3.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 { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface PasswordRequirements
 */
export interface PasswordRequirements {
    /**
     * 
     * @type {number}
     * @memberof PasswordRequirements
     */
    length?: number;
    /**
     * 
     * @type {boolean}
     * @memberof PasswordRequirements
     */
    requireCapital?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof PasswordRequirements
     */
    requireNumeric?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof PasswordRequirements
     */
    requireSpecial?: boolean;
    /**
     * 
     * @type {string}
     * @memberof PasswordRequirements
     */
    validSpecialCharacters?: string;
}

/**
 * Check if a given object implements the PasswordRequirements interface.
 */
export function instanceOfPasswordRequirements(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function PasswordRequirementsFromJSON(json: any): PasswordRequirements {
    return PasswordRequirementsFromJSONTyped(json, false);
}

export function PasswordRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordRequirements {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'length': !exists(json, 'length') ? undefined : json['length'],
        'requireCapital': !exists(json, 'requireCapital') ? undefined : json['requireCapital'],
        'requireNumeric': !exists(json, 'requireNumeric') ? undefined : json['requireNumeric'],
        'requireSpecial': !exists(json, 'requireSpecial') ? undefined : json['requireSpecial'],
        'validSpecialCharacters': !exists(json, 'validSpecialCharacters') ? undefined : json['validSpecialCharacters'],
    };
}

export function PasswordRequirementsToJSON(value?: PasswordRequirements | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'length': value.length,
        'requireCapital': value.requireCapital,
        'requireNumeric': value.requireNumeric,
        'requireSpecial': value.requireSpecial,
        'validSpecialCharacters': value.validSpecialCharacters,
    };
}

