/* 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';
import type { UpdateMediaPathRequestDtoPathInfo } from './UpdateMediaPathRequestDtoPathInfo';
import {
    UpdateMediaPathRequestDtoPathInfoFromJSON,
    UpdateMediaPathRequestDtoPathInfoFromJSONTyped,
    UpdateMediaPathRequestDtoPathInfoToJSON,
} from './UpdateMediaPathRequestDtoPathInfo';

/**
 * Update library options dto.
 * @export
 * @interface UpdateMediaPathRequestDto
 */
export interface UpdateMediaPathRequestDto {
    /**
     * Gets or sets the library name.
     * @type {string}
     * @memberof UpdateMediaPathRequestDto
     */
    name: string;
    /**
     * 
     * @type {UpdateMediaPathRequestDtoPathInfo}
     * @memberof UpdateMediaPathRequestDto
     */
    pathInfo: UpdateMediaPathRequestDtoPathInfo;
}

/**
 * Check if a given object implements the UpdateMediaPathRequestDto interface.
 */
export function instanceOfUpdateMediaPathRequestDto(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "name" in value;
    isInstance = isInstance && "pathInfo" in value;

    return isInstance;
}

export function UpdateMediaPathRequestDtoFromJSON(json: any): UpdateMediaPathRequestDto {
    return UpdateMediaPathRequestDtoFromJSONTyped(json, false);
}

export function UpdateMediaPathRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMediaPathRequestDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'name': json['Name'],
        'pathInfo': UpdateMediaPathRequestDtoPathInfoFromJSON(json['PathInfo']),
    };
}

export function UpdateMediaPathRequestDtoToJSON(value?: UpdateMediaPathRequestDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Name': value.name,
        'PathInfo': UpdateMediaPathRequestDtoPathInfoToJSON(value.pathInfo),
    };
}

