74 lines
1.8 KiB
TypeScript
74 lines
1.8 KiB
TypeScript
/* 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';
|
|
/**
|
|
* Defines the MediaBrowser.Model.Configuration.PathSubstitution.
|
|
* @export
|
|
* @interface PathSubstitution
|
|
*/
|
|
export interface PathSubstitution {
|
|
/**
|
|
* Gets or sets the value to substitute.
|
|
* @type {string}
|
|
* @memberof PathSubstitution
|
|
*/
|
|
from?: string;
|
|
/**
|
|
* Gets or sets the value to substitution with.
|
|
* @type {string}
|
|
* @memberof PathSubstitution
|
|
*/
|
|
to?: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the PathSubstitution interface.
|
|
*/
|
|
export function instanceOfPathSubstitution(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function PathSubstitutionFromJSON(json: any): PathSubstitution {
|
|
return PathSubstitutionFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function PathSubstitutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathSubstitution {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'from': !exists(json, 'From') ? undefined : json['From'],
|
|
'to': !exists(json, 'To') ? undefined : json['To'],
|
|
};
|
|
}
|
|
|
|
export function PathSubstitutionToJSON(value?: PathSubstitution | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'From': value.from,
|
|
'To': value.to,
|
|
};
|
|
}
|
|
|