/* tslint:disable */
/* eslint-disable */
/**
 * Dash API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.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 { exists, mapValues } from '../runtime';
import type { TrackingCategory } from './TrackingCategory';
import {
    TrackingCategoryFromJSON,
    TrackingCategoryFromJSONTyped,
    TrackingCategoryToJSON,
} from './TrackingCategory';

/**
 * 
 * @export
 * @interface TrackingCategories
 */
export interface TrackingCategories {
    /**
     * 
     * @type {Array<TrackingCategory>}
     * @memberof TrackingCategories
     */
    categories?: Array<TrackingCategory>;
}

/**
 * Check if a given object implements the TrackingCategories interface.
 */
export function instanceOfTrackingCategories(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function TrackingCategoriesFromJSON(json: any): TrackingCategories {
    return TrackingCategoriesFromJSONTyped(json, false);
}

export function TrackingCategoriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackingCategories {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'categories': !exists(json, 'categories') ? undefined : ((json['categories'] as Array<any>).map(TrackingCategoryFromJSON)),
    };
}

export function TrackingCategoriesToJSON(value?: TrackingCategories | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'categories': value.categories === undefined ? undefined : ((value.categories as Array<any>).map(TrackingCategoryToJSON)),
    };
}

