jellyfin-discord-bot/server/jellyfin/models/JoinGroupRequestDto.ts

66 lines
1.6 KiB
TypeScript
Raw Permalink 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';
/**
* Class JoinGroupRequestDto.
* @export
* @interface JoinGroupRequestDto
*/
export interface JoinGroupRequestDto {
/**
* Gets or sets the group identifier.
* @type {string}
* @memberof JoinGroupRequestDto
*/
groupId?: string;
}
/**
* Check if a given object implements the JoinGroupRequestDto interface.
*/
export function instanceOfJoinGroupRequestDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function JoinGroupRequestDtoFromJSON(json: any): JoinGroupRequestDto {
return JoinGroupRequestDtoFromJSONTyped(json, false);
}
export function JoinGroupRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JoinGroupRequestDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'groupId': !exists(json, 'GroupId') ? undefined : json['GroupId'],
};
}
export function JoinGroupRequestDtoToJSON(value?: JoinGroupRequestDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'GroupId': value.groupId,
};
}