/* 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 { ProviderList200ResponsePayloadListInner } from './ProviderList200ResponsePayloadListInner';
import {
    ProviderList200ResponsePayloadListInnerFromJSON,
    ProviderList200ResponsePayloadListInnerFromJSONTyped,
    ProviderList200ResponsePayloadListInnerToJSON,
    ProviderList200ResponsePayloadListInnerToJSONTyped,
} from './ProviderList200ResponsePayloadListInner';

/**
 * 
 * @export
 * @interface ProviderList200ResponsePayload
 */
export interface ProviderList200ResponsePayload {
    /**
     * 
     * @type {Array<ProviderList200ResponsePayloadListInner>}
     * @memberof ProviderList200ResponsePayload
     */
    list: Array<ProviderList200ResponsePayloadListInner>;
}

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

export function ProviderList200ResponsePayloadFromJSON(json: any): ProviderList200ResponsePayload {
    return ProviderList200ResponsePayloadFromJSONTyped(json, false);
}

export function ProviderList200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderList200ResponsePayload {
    if (json == null) {
        return json;
    }
    return {
        
        'list': ((json['list'] as Array<any>).map(ProviderList200ResponsePayloadListInnerFromJSON)),
    };
}

export function ProviderList200ResponsePayloadToJSON(json: any): ProviderList200ResponsePayload {
    return ProviderList200ResponsePayloadToJSONTyped(json, false);
}

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

    return {
        
        'list': ((value['list'] as Array<any>).map(ProviderList200ResponsePayloadListInnerToJSON)),
    };
}

