/* 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 ChangeDisplayName400Response
 */
export interface ChangeDisplayName400Response {
    /**
     * 
     * @type {string}
     * @memberof ChangeDisplayName400Response
     */
    kind: ChangeDisplayName400ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof ChangeDisplayName400Response
     */
    msg: ChangeDisplayName400ResponseMsgEnum;
}


/**
 * @export
 */
export const ChangeDisplayName400ResponseKindEnum = {
    Failure: 'failure'
} as const;
export type ChangeDisplayName400ResponseKindEnum = typeof ChangeDisplayName400ResponseKindEnum[keyof typeof ChangeDisplayName400ResponseKindEnum];

/**
 * @export
 */
export const ChangeDisplayName400ResponseMsgEnum = {
    ChangeDisplayNameAlreadyExist: 'changeDisplayName.alreadyExist',
    ChangeDisplayNameInvalid: 'changeDisplayName.invalid'
} as const;
export type ChangeDisplayName400ResponseMsgEnum = typeof ChangeDisplayName400ResponseMsgEnum[keyof typeof ChangeDisplayName400ResponseMsgEnum];


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

export function ChangeDisplayName400ResponseFromJSON(json: any): ChangeDisplayName400Response {
    return ChangeDisplayName400ResponseFromJSONTyped(json, false);
}

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

export function ChangeDisplayName400ResponseToJSON(json: any): ChangeDisplayName400Response {
    return ChangeDisplayName400ResponseToJSONTyped(json, false);
}

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

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

