/* tslint:disable */
/* eslint-disable */
/**
 * Jellyfin API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 10.8.9
 * 
 *
 * 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';
/**
 * The startup user DTO.
 * @export
 * @interface UpdateStartupUserRequest
 */
export interface UpdateStartupUserRequest {
    /**
     * Gets or sets the username.
     * @type {string}
     * @memberof UpdateStartupUserRequest
     */
    name?: string | null;
    /**
     * Gets or sets the user's password.
     * @type {string}
     * @memberof UpdateStartupUserRequest
     */
    password?: string | null;
}

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

    return isInstance;
}

export function UpdateStartupUserRequestFromJSON(json: any): UpdateStartupUserRequest {
    return UpdateStartupUserRequestFromJSONTyped(json, false);
}

export function UpdateStartupUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStartupUserRequest {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'name': !exists(json, 'Name') ? undefined : json['Name'],
        'password': !exists(json, 'Password') ? undefined : json['Password'],
    };
}

export function UpdateStartupUserRequestToJSON(value?: UpdateStartupUserRequest | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Name': value.name,
        'Password': value.password,
    };
}

