/* 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';
/**
 * 
 * @export
 * @interface TrackingCategory
 */
export interface TrackingCategory {
    /**
     * 
     * @type {string}
     * @memberof TrackingCategory
     */
    type: string;
    /**
     * 
     * @type {string}
     * @memberof TrackingCategory
     */
    name: string;
    /**
     * 
     * @type {Array<string>}
     * @memberof TrackingCategory
     */
    items?: Array<string>;
}

/**
 * Check if a given object implements the TrackingCategory interface.
 */
export function instanceOfTrackingCategory(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "type" in value;
    isInstance = isInstance && "name" in value;

    return isInstance;
}

export function TrackingCategoryFromJSON(json: any): TrackingCategory {
    return TrackingCategoryFromJSONTyped(json, false);
}

export function TrackingCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackingCategory {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'type': json['type'],
        'name': json['name'],
        'items': !exists(json, 'items') ? undefined : json['items'],
    };
}

export function TrackingCategoryToJSON(value?: TrackingCategory | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'type': value.type,
        'name': value.name,
        'items': value.items,
    };
}

