jellyfin-discord-bot/server/jellyfin/models/UpdateMediaEncoderPathReque...

74 lines
1.9 KiB
TypeScript
Raw Normal View History

2023-05-04 23:34:53 +02:00
/* 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';
/**
* Media Encoder Path Dto.
* @export
* @interface UpdateMediaEncoderPathRequest
*/
export interface UpdateMediaEncoderPathRequest {
/**
* Gets or sets media encoder path.
* @type {string}
* @memberof UpdateMediaEncoderPathRequest
*/
path?: string;
/**
* Gets or sets media encoder path type.
* @type {string}
* @memberof UpdateMediaEncoderPathRequest
*/
pathType?: string;
}
/**
* Check if a given object implements the UpdateMediaEncoderPathRequest interface.
*/
export function instanceOfUpdateMediaEncoderPathRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function UpdateMediaEncoderPathRequestFromJSON(json: any): UpdateMediaEncoderPathRequest {
return UpdateMediaEncoderPathRequestFromJSONTyped(json, false);
}
export function UpdateMediaEncoderPathRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMediaEncoderPathRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'path': !exists(json, 'Path') ? undefined : json['Path'],
'pathType': !exists(json, 'PathType') ? undefined : json['PathType'],
};
}
export function UpdateMediaEncoderPathRequestToJSON(value?: UpdateMediaEncoderPathRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Path': value.path,
'PathType': value.pathType,
};
}