/* 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 { ProviderList200ResponsePayloadListInnerColors } from './ProviderList200ResponsePayloadListInnerColors';
import {
    ProviderList200ResponsePayloadListInnerColorsFromJSON,
    ProviderList200ResponsePayloadListInnerColorsFromJSONTyped,
    ProviderList200ResponsePayloadListInnerColorsToJSON,
    ProviderList200ResponsePayloadListInnerColorsToJSONTyped,
} from './ProviderList200ResponsePayloadListInnerColors';

/**
 * 
 * @export
 * @interface ProviderList200ResponsePayloadListInner
 */
export interface ProviderList200ResponsePayloadListInner {
    /**
     * Name to display to the user
     * @type {string}
     * @memberof ProviderList200ResponsePayloadListInner
     */
    displayName: string;
    /**
     * internal Name of the provider
     * @type {string}
     * @memberof ProviderList200ResponsePayloadListInner
     */
    name: string;
    /**
     * 
     * @type {ProviderList200ResponsePayloadListInnerColors}
     * @memberof ProviderList200ResponsePayloadListInner
     */
    colors: ProviderList200ResponsePayloadListInnerColors;
}

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

export function ProviderList200ResponsePayloadListInnerFromJSON(json: any): ProviderList200ResponsePayloadListInner {
    return ProviderList200ResponsePayloadListInnerFromJSONTyped(json, false);
}

export function ProviderList200ResponsePayloadListInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderList200ResponsePayloadListInner {
    if (json == null) {
        return json;
    }
    return {
        
        'displayName': json['display_name'],
        'name': json['name'],
        'colors': ProviderList200ResponsePayloadListInnerColorsFromJSON(json['colors']),
    };
}

export function ProviderList200ResponsePayloadListInnerToJSON(json: any): ProviderList200ResponsePayloadListInner {
    return ProviderList200ResponsePayloadListInnerToJSONTyped(json, false);
}

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

    return {
        
        'display_name': value['displayName'],
        'name': value['name'],
        'colors': ProviderList200ResponsePayloadListInnerColorsToJSON(value['colors']),
    };
}

