func (o CategoriesList) ToSparse(fields ...string) elemental.Identifiables {

	out := make(SparseCategoriesList, len(o))
	for i := 0; i < len(o); i++ {
		out[i] = o[i].ToSparse(fields...).(*SparseCategory)
	}

	return out
}
// ToSparse returns the CategoriesList converted to SparseCategoriesList.
// Objects in the list will only contain the given fields. No field means entire field set.
ToSparse returns the CategoriesList converted to SparseCategoriesList.
Objects in the list will only contain the given fields. No field means entire field set.
// ToSparse returns the CategoriesList converted to SparseCategoriesList . // Objects in the list will only contain the given fields . No field means entire field set .
func (o CategoriesList) ToSparse(fields ...string) elemental.Identifiables {
	out := make(SparseCategoriesList, len(o))
	for i := 0; i < len(o); i++ {
		out[i] = o[i].ToSparse(fields...).(*SparseCategory)
	}
	return out
}
func ( o CategoriesList ) ToSparse ( fields ... string ) elemental . Identifiables { out := make ( SparseCategoriesList , len ( o ) ) for i := 0 ; i < len ( o ) ; i ++ { out [ i ] = o [ i ] . ToSparse ( fields ... ) . ( * SparseCategory ) } return out }
ToSparse returns the CategoriesList converted to SparseCategoriesList.
ToSparse returns the CategoriesList converted to SparseCategoriesList .