/* 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 LoginOtp500Response */ export interface LoginOtp500Response { /** * * @type {string} * @memberof LoginOtp500Response */ kind: LoginOtp500ResponseKindEnum; /** * * @type {string} * @memberof LoginOtp500Response */ msg: LoginOtp500ResponseMsgEnum; } /** * @export */ export const LoginOtp500ResponseKindEnum = { Failed: 'failed' } as const; export type LoginOtp500ResponseKindEnum = typeof LoginOtp500ResponseKindEnum[keyof typeof LoginOtp500ResponseKindEnum]; /** * @export */ export const LoginOtp500ResponseMsgEnum = { OtpFailedGeneric: 'otp.failed.generic' } as const; export type LoginOtp500ResponseMsgEnum = typeof LoginOtp500ResponseMsgEnum[keyof typeof LoginOtp500ResponseMsgEnum]; /** * Check if a given object implements the LoginOtp500Response interface. */ export function instanceOfLoginOtp500Response(value: object): value is LoginOtp500Response { if (!('kind' in value) || value['kind'] === undefined) return false; if (!('msg' in value) || value['msg'] === undefined) return false; return true; } export function LoginOtp500ResponseFromJSON(json: any): LoginOtp500Response { return LoginOtp500ResponseFromJSONTyped(json, false); } export function LoginOtp500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp500Response { if (json == null) { return json; } return { 'kind': json['kind'], 'msg': json['msg'], }; } export function LoginOtp500ResponseToJSON(json: any): LoginOtp500Response { return LoginOtp500ResponseToJSONTyped(json, false); } export function LoginOtp500ResponseToJSONTyped(value?: LoginOtp500Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'kind': value['kind'], 'msg': value['msg'], }; }