/* 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.1
 * 
 *
 * 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 Login202ResponsePayload
 */
export interface Login202ResponsePayload {
    /**
     * JWT to send with the OTP to finish login
     * @type {string}
     * @memberof Login202ResponsePayload
     */
    token: string;
}

/**
 * Check if a given object implements the Login202ResponsePayload interface.
 */
export function instanceOfLogin202ResponsePayload(value: object): value is Login202ResponsePayload {
    if (!('token' in value) || value['token'] === undefined) return false;
    return true;
}

export function Login202ResponsePayloadFromJSON(json: any): Login202ResponsePayload {
    return Login202ResponsePayloadFromJSONTyped(json, false);
}

export function Login202ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login202ResponsePayload {
    if (json == null) {
        return json;
    }
    return {
        
        'token': json['token'],
    };
}

export function Login202ResponsePayloadToJSON(json: any): Login202ResponsePayload {
    return Login202ResponsePayloadToJSONTyped(json, false);
}

export function Login202ResponsePayloadToJSONTyped(value?: Login202ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'token': value['token'],
    };
}

