67 lines
1.5 KiB
TypeScript
67 lines
1.5 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';
|
||
|
/**
|
||
|
* The quick connect request body.
|
||
|
* @export
|
||
|
* @interface QuickConnectDto
|
||
|
*/
|
||
|
export interface QuickConnectDto {
|
||
|
/**
|
||
|
* Gets or sets the quick connect secret.
|
||
|
* @type {string}
|
||
|
* @memberof QuickConnectDto
|
||
|
*/
|
||
|
secret: string;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the QuickConnectDto interface.
|
||
|
*/
|
||
|
export function instanceOfQuickConnectDto(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
isInstance = isInstance && "secret" in value;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function QuickConnectDtoFromJSON(json: any): QuickConnectDto {
|
||
|
return QuickConnectDtoFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function QuickConnectDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickConnectDto {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'secret': json['Secret'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function QuickConnectDtoToJSON(value?: QuickConnectDto | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'Secret': value.secret,
|
||
|
};
|
||
|
}
|
||
|
|