/* 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';
import type { ProviderList200ResponsePayload } from './ProviderList200ResponsePayload';
import {
    ProviderList200ResponsePayloadFromJSON,
    ProviderList200ResponsePayloadFromJSONTyped,
    ProviderList200ResponsePayloadToJSON,
    ProviderList200ResponsePayloadToJSONTyped,
} from './ProviderList200ResponsePayload';

/**
 * 
 * @export
 * @interface ProviderList200Response
 */
export interface ProviderList200Response {
    /**
     * 
     * @type {string}
     * @memberof ProviderList200Response
     */
    kind: ProviderList200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof ProviderList200Response
     */
    msg: ProviderList200ResponseMsgEnum;
    /**
     * 
     * @type {ProviderList200ResponsePayload}
     * @memberof ProviderList200Response
     */
    payload: ProviderList200ResponsePayload;
}


/**
 * @export
 */
export const ProviderList200ResponseKindEnum = {
    Success: 'success'
} as const;
export type ProviderList200ResponseKindEnum = typeof ProviderList200ResponseKindEnum[keyof typeof ProviderList200ResponseKindEnum];

/**
 * @export
 */
export const ProviderList200ResponseMsgEnum = {
    ProviderListSuccess: 'providerList.success'
} as const;
export type ProviderList200ResponseMsgEnum = typeof ProviderList200ResponseMsgEnum[keyof typeof ProviderList200ResponseMsgEnum];


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

export function ProviderList200ResponseFromJSON(json: any): ProviderList200Response {
    return ProviderList200ResponseFromJSONTyped(json, false);
}

export function ProviderList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderList200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': ProviderList200ResponsePayloadFromJSON(json['payload']),
    };
}

export function ProviderList200ResponseToJSON(json: any): ProviderList200Response {
    return ProviderList200ResponseToJSONTyped(json, false);
}

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

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
        'payload': ProviderList200ResponsePayloadToJSON(value['payload']),
    };
}

