66 lines
1.7 KiB
TypeScript
66 lines
1.7 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* @fastify/swagger
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 9.6.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
import { mapValues } from '../runtime';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface LoginOtp200ResponsePayload
|
|
*/
|
|
export interface LoginOtp200ResponsePayload {
|
|
/**
|
|
* the JWT Token
|
|
* @type {string}
|
|
* @memberof LoginOtp200ResponsePayload
|
|
*/
|
|
token: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the LoginOtp200ResponsePayload interface.
|
|
*/
|
|
export function instanceOfLoginOtp200ResponsePayload(value: object): value is LoginOtp200ResponsePayload {
|
|
if (!('token' in value) || value['token'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function LoginOtp200ResponsePayloadFromJSON(json: any): LoginOtp200ResponsePayload {
|
|
return LoginOtp200ResponsePayloadFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function LoginOtp200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp200ResponsePayload {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'token': json['token'],
|
|
};
|
|
}
|
|
|
|
export function LoginOtp200ResponsePayloadToJSON(json: any): LoginOtp200ResponsePayload {
|
|
return LoginOtp200ResponsePayloadToJSONTyped(json, false);
|
|
}
|
|
|
|
export function LoginOtp200ResponsePayloadToJSONTyped(value?: LoginOtp200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
|
|
'token': value['token'],
|
|
};
|
|
}
|
|
|