/* 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 create user by name request body. * @export * @interface CreateUserByName */ export interface CreateUserByName { /** * Gets or sets the username. * @type {string} * @memberof CreateUserByName */ name?: string | null; /** * Gets or sets the password. * @type {string} * @memberof CreateUserByName */ password?: string | null; } /** * Check if a given object implements the CreateUserByName interface. */ export function instanceOfCreateUserByName(value: object): boolean { let isInstance = true; return isInstance; } export function CreateUserByNameFromJSON(json: any): CreateUserByName { return CreateUserByNameFromJSONTyped(json, false); } export function CreateUserByNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserByName { if ((json === undefined) || (json === null)) { return json; } return { 'name': !exists(json, 'Name') ? undefined : json['Name'], 'password': !exists(json, 'Password') ? undefined : json['Password'], }; } export function CreateUserByNameToJSON(value?: CreateUserByName | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Name': value.name, 'Password': value.password, }; }