89 lines
2.2 KiB
TypeScript
89 lines
2.2 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';
|
|
import type { GroupUpdateType } from './GroupUpdateType';
|
|
import {
|
|
GroupUpdateTypeFromJSON,
|
|
GroupUpdateTypeFromJSONTyped,
|
|
GroupUpdateTypeToJSON,
|
|
} from './GroupUpdateType';
|
|
|
|
/**
|
|
* Class GroupUpdate.
|
|
* @export
|
|
* @interface ObjectGroupUpdate
|
|
*/
|
|
export interface ObjectGroupUpdate {
|
|
/**
|
|
* Gets the group identifier.
|
|
* @type {string}
|
|
* @memberof ObjectGroupUpdate
|
|
*/
|
|
groupId?: string;
|
|
/**
|
|
*
|
|
* @type {GroupUpdateType}
|
|
* @memberof ObjectGroupUpdate
|
|
*/
|
|
type?: GroupUpdateType;
|
|
/**
|
|
* Gets the update data.
|
|
* @type {any}
|
|
* @memberof ObjectGroupUpdate
|
|
*/
|
|
data?: any | null;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the ObjectGroupUpdate interface.
|
|
*/
|
|
export function instanceOfObjectGroupUpdate(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function ObjectGroupUpdateFromJSON(json: any): ObjectGroupUpdate {
|
|
return ObjectGroupUpdateFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ObjectGroupUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectGroupUpdate {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'groupId': !exists(json, 'GroupId') ? undefined : json['GroupId'],
|
|
'type': !exists(json, 'Type') ? undefined : GroupUpdateTypeFromJSON(json['Type']),
|
|
'data': !exists(json, 'Data') ? undefined : json['Data'],
|
|
};
|
|
}
|
|
|
|
export function ObjectGroupUpdateToJSON(value?: ObjectGroupUpdate | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'GroupId': value.groupId,
|
|
'Type': GroupUpdateTypeToJSON(value.type),
|
|
'Data': value.data,
|
|
};
|
|
}
|
|
|