/* 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 UserResponse
 */
export interface UserResponse {
    /**
     * 
     * @type {string}
     * @memberof UserResponse
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof UserResponse
     */
    username?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UserResponse
     */
    employeeId?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UserResponse
     */
    roleName?: string | null;
    /**
     * 
     * @type {boolean}
     * @memberof UserResponse
     */
    isActive?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof UserResponse
     */
    mustChangePassword?: boolean;
}

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

export function UserResponseFromJSON(json: any): UserResponse {
    return UserResponseFromJSONTyped(json, false);
}

export function UserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'username': json['username'] == null ? undefined : json['username'],
        'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
        'roleName': json['roleName'] == null ? undefined : json['roleName'],
        'isActive': json['isActive'] == null ? undefined : json['isActive'],
        'mustChangePassword': json['mustChangePassword'] == null ? undefined : json['mustChangePassword'],
    };
}

export function UserResponseToJSON(json: any): UserResponse {
    return UserResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'username': value['username'],
        'employeeId': value['employeeId'],
        'roleName': value['roleName'],
        'isActive': value['isActive'],
        'mustChangePassword': value['mustChangePassword'],
    };
}

