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

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';
/**
* The startup user DTO.
* @export
* @interface StartupUserDto
*/
export interface StartupUserDto {
/**
* Gets or sets the username.
* @type {string}
* @memberof StartupUserDto
*/
name?: string | null;
/**
* Gets or sets the user's password.
* @type {string}
* @memberof StartupUserDto
*/
password?: string | null;
}
/**
* Check if a given object implements the StartupUserDto interface.
*/
export function instanceOfStartupUserDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function StartupUserDtoFromJSON(json: any): StartupUserDto {
return StartupUserDtoFromJSONTyped(json, false);
}
export function StartupUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartupUserDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'password': !exists(json, 'Password') ? undefined : json['Password'],
};
}
export function StartupUserDtoToJSON(value?: StartupUserDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'Password': value.password,
};
}