74 lines
1.7 KiB
TypeScript
74 lines
1.7 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';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface EndPointInfo
|
|
*/
|
|
export interface EndPointInfo {
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof EndPointInfo
|
|
*/
|
|
isLocal?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof EndPointInfo
|
|
*/
|
|
isInNetwork?: boolean;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the EndPointInfo interface.
|
|
*/
|
|
export function instanceOfEndPointInfo(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function EndPointInfoFromJSON(json: any): EndPointInfo {
|
|
return EndPointInfoFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function EndPointInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndPointInfo {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'isLocal': !exists(json, 'IsLocal') ? undefined : json['IsLocal'],
|
|
'isInNetwork': !exists(json, 'IsInNetwork') ? undefined : json['IsInNetwork'],
|
|
};
|
|
}
|
|
|
|
export function EndPointInfoToJSON(value?: EndPointInfo | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'IsLocal': value.isLocal,
|
|
'IsInNetwork': value.isInNetwork,
|
|
};
|
|
}
|
|
|