/* 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 ChangeDesc400Response
 */
export interface ChangeDesc400Response {
    /**
     * 
     * @type {string}
     * @memberof ChangeDesc400Response
     */
    kind: ChangeDesc400ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof ChangeDesc400Response
     */
    msg: ChangeDesc400ResponseMsgEnum;
}


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

/**
 * @export
 */
export const ChangeDesc400ResponseMsgEnum = {
    ChangedescFailureDescTooLong: 'changedesc.failure.descTooLong'
} as const;
export type ChangeDesc400ResponseMsgEnum = typeof ChangeDesc400ResponseMsgEnum[keyof typeof ChangeDesc400ResponseMsgEnum];


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

export function ChangeDesc400ResponseFromJSON(json: any): ChangeDesc400Response {
    return ChangeDesc400ResponseFromJSONTyped(json, false);
}

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

export function ChangeDesc400ResponseToJSON(json: any): ChangeDesc400Response {
    return ChangeDesc400ResponseToJSONTyped(json, false);
}

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

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

