/*
 * Dash API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * API version: 0.1
 * Generated by: OpenAPI Generator (https://openapi-generator.tech)
 */

package dashapi

type TrackingCategories struct {

	Categories []TrackingCategory `json:"categories,omitempty"`
}

// AssertTrackingCategoriesRequired checks if the required fields are not zero-ed
func AssertTrackingCategoriesRequired(obj TrackingCategories) error {
	for _, el := range obj.Categories {
		if err := AssertTrackingCategoryRequired(el); err != nil {
			return err
		}
	}
	return nil
}

// AssertRecurseTrackingCategoriesRequired recursively checks if required fields are not zero-ed in a nested slice.
// Accepts only nested slice of TrackingCategories (e.g. [][]TrackingCategories), otherwise ErrTypeAssertionError is thrown.
func AssertRecurseTrackingCategoriesRequired(objSlice interface{}) error {
	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
		aTrackingCategories, ok := obj.(TrackingCategories)
		if !ok {
			return ErrTypeAssertionError
		}
		return AssertTrackingCategoriesRequired(aTrackingCategories)
	})
}
