func ConvertSpacesFromModel(ctx context.Context, db application.DB, request *goa.RequestData, spaces []space.Space, additional ...SpaceConvertFunc) ([]*app.Space, error) {
	var ps = []*app.Space{}
	for _, p := range spaces {
		spaceData, err := ConvertSpaceFromModel(ctx, db, request, p, additional...)
		if err != nil {
			return nil, err
		}

		ps = append(ps, spaceData)
	}
	return ps, nil
}
// ConvertSpacesFromModel converts between internal and external REST representation
ConvertSpacesFromModel converts between internal and external REST representation
// ConvertSpacesFromModel converts between internal and external REST representation
func ConvertSpacesFromModel(ctx context.Context, db application.DB, request *goa.RequestData, spaces []space.Space, additional ...SpaceConvertFunc) ([]*app.Space, error) {
	var ps = []*app.Space{}
	for _, p := range spaces {
		spaceData, err := ConvertSpaceFromModel(ctx, db, request, p, additional...)
		if err != nil {
			return nil, err
		}
		ps = append(ps, spaceData)
	}
	return ps, nil
}
func ConvertSpacesFromModel ( ctx context . Context , db application . DB , request * goa . RequestData , spaces [ ] space . Space , additional ... SpaceConvertFunc ) ( [ ] * app . Space , error ) { var ps = [ ] * app . Space { } for _ , p := range spaces { spaceData , err := ConvertSpaceFromModel ( ctx , db , request , p , additional ... ) if err != nil { return nil , err } ps = append ( ps , spaceData ) } return ps , nil }
ConvertSpacesFromModel converts between internal and external REST representation
ConvertSpacesFromModel converts between internal and external REST representation