/* 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 { GroupRepeatMode } from './GroupRepeatMode';
import {
    GroupRepeatModeFromJSON,
    GroupRepeatModeFromJSONTyped,
    GroupRepeatModeToJSON,
} from './GroupRepeatMode';

/**
 * Class SetRepeatModeRequestDto.
 * @export
 * @interface SetRepeatModeRequestDto
 */
export interface SetRepeatModeRequestDto {
    /**
     * 
     * @type {GroupRepeatMode}
     * @memberof SetRepeatModeRequestDto
     */
    mode?: GroupRepeatMode;
}

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

    return isInstance;
}

export function SetRepeatModeRequestDtoFromJSON(json: any): SetRepeatModeRequestDto {
    return SetRepeatModeRequestDtoFromJSONTyped(json, false);
}

export function SetRepeatModeRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetRepeatModeRequestDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'mode': !exists(json, 'Mode') ? undefined : GroupRepeatModeFromJSON(json['Mode']),
    };
}

export function SetRepeatModeRequestDtoToJSON(value?: SetRepeatModeRequestDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Mode': GroupRepeatModeToJSON(value.mode),
    };
}

