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

67 lines
1.6 KiB
TypeScript
Raw 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';
/**
* Forgot Password Pin enter request body DTO.
* @export
* @interface ForgotPasswordPinDto
*/
export interface ForgotPasswordPinDto {
/**
* Gets or sets the entered pin to have the password reset.
* @type {string}
* @memberof ForgotPasswordPinDto
*/
pin: string;
}
/**
* Check if a given object implements the ForgotPasswordPinDto interface.
*/
export function instanceOfForgotPasswordPinDto(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "pin" in value;
return isInstance;
}
export function ForgotPasswordPinDtoFromJSON(json: any): ForgotPasswordPinDto {
return ForgotPasswordPinDtoFromJSONTyped(json, false);
}
export function ForgotPasswordPinDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordPinDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'pin': json['Pin'],
};
}
export function ForgotPasswordPinDtoToJSON(value?: ForgotPasswordPinDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Pin': value.pin,
};
}