/* 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 Login400Response
 */
export interface Login400Response {
    /**
     * 
     * @type {string}
     * @memberof Login400Response
     */
    kind: Login400ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof Login400Response
     */
    msg: Login400ResponseMsgEnum;
}


/**
 * @export
 */
export const Login400ResponseKindEnum = {
    Failed: 'failed'
} as const;
export type Login400ResponseKindEnum = typeof Login400ResponseKindEnum[keyof typeof Login400ResponseKindEnum];

/**
 * @export
 */
export const Login400ResponseMsgEnum = {
    LoginFailedGeneric: 'login.failed.generic',
    LoginFailedInvalid: 'login.failed.invalid'
} as const;
export type Login400ResponseMsgEnum = typeof Login400ResponseMsgEnum[keyof typeof Login400ResponseMsgEnum];


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

export function Login400ResponseFromJSON(json: any): Login400Response {
    return Login400ResponseFromJSONTyped(json, false);
}

export function Login400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login400Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
    };
}

export function Login400ResponseToJSON(json: any): Login400Response {
    return Login400ResponseToJSONTyped(json, false);
}

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

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
    };
}

