/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * The version of the OpenAPI document: 1.0.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 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): value is PasswordRequirements {
    return true;
}

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

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

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

