/* 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';
/**
 * 
 * @export
 * @interface XbmcMetadataOptions
 */
export interface XbmcMetadataOptions {
    /**
     * 
     * @type {string}
     * @memberof XbmcMetadataOptions
     */
    userId?: string | null;
    /**
     * 
     * @type {string}
     * @memberof XbmcMetadataOptions
     */
    releaseDateFormat?: string;
    /**
     * 
     * @type {boolean}
     * @memberof XbmcMetadataOptions
     */
    saveImagePathsInNfo?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof XbmcMetadataOptions
     */
    enablePathSubstitution?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof XbmcMetadataOptions
     */
    enableExtraThumbsDuplication?: boolean;
}

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

    return isInstance;
}

export function XbmcMetadataOptionsFromJSON(json: any): XbmcMetadataOptions {
    return XbmcMetadataOptionsFromJSONTyped(json, false);
}

export function XbmcMetadataOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): XbmcMetadataOptions {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
        'releaseDateFormat': !exists(json, 'ReleaseDateFormat') ? undefined : json['ReleaseDateFormat'],
        'saveImagePathsInNfo': !exists(json, 'SaveImagePathsInNfo') ? undefined : json['SaveImagePathsInNfo'],
        'enablePathSubstitution': !exists(json, 'EnablePathSubstitution') ? undefined : json['EnablePathSubstitution'],
        'enableExtraThumbsDuplication': !exists(json, 'EnableExtraThumbsDuplication') ? undefined : json['EnableExtraThumbsDuplication'],
    };
}

export function XbmcMetadataOptionsToJSON(value?: XbmcMetadataOptions | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'UserId': value.userId,
        'ReleaseDateFormat': value.releaseDateFormat,
        'SaveImagePathsInNfo': value.saveImagePathsInNfo,
        'EnablePathSubstitution': value.enablePathSubstitution,
        'EnableExtraThumbsDuplication': value.enableExtraThumbsDuplication,
    };
}

