/* 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 CreateUserByNameRequest */ export interface CreateUserByNameRequest { /** * Gets or sets the username. * @type {string} * @memberof CreateUserByNameRequest */ name?: string | null; /** * Gets or sets the password. * @type {string} * @memberof CreateUserByNameRequest */ password?: string | null; } /** * Check if a given object implements the CreateUserByNameRequest interface. */ export function instanceOfCreateUserByNameRequest(value: object): boolean { let isInstance = true; return isInstance; } export function CreateUserByNameRequestFromJSON(json: any): CreateUserByNameRequest { return CreateUserByNameRequestFromJSONTyped(json, false); } export function CreateUserByNameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserByNameRequest { if ((json === undefined) || (json === null)) { return json; } return { 'name': !exists(json, 'Name') ? undefined : json['Name'], 'password': !exists(json, 'Password') ? undefined : json['Password'], }; } export function CreateUserByNameRequestToJSON(value?: CreateUserByNameRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Name': value.name, 'Password': value.password, }; }