func marshalScrapedPerformers(content []models.ScrapedContent) ([]*models.ScrapedPerformer, error) {
	var ret []*models.ScrapedPerformer
	for _, c := range content {
		if c == nil {
			// graphql schema requires performers to be non-nil
			continue
		}

		switch p := c.(type) {
		case *models.ScrapedPerformer:
			ret = append(ret, p)
		case models.ScrapedPerformer:
			ret = append(ret, &p)
		default:
			return nil, fmt.Errorf("%w: cannot turn ScrapedContent into ScrapedPerformer", models.ErrConversion)
		}
	}

	return ret, nil
}
// marshalScrapedPerformers converts ScrapedContent into ScrapedPerformer. If conversion
// fails, an error is returned to the caller.
marshalScrapedPerformers converts ScrapedContent into ScrapedPerformer. If conversion
fails, an error is returned to the caller.
// marshalScrapedPerformers converts ScrapedContent into ScrapedPerformer . If conversion // fails an error is returned to the caller .
func marshalScrapedPerformers(content []models.ScrapedContent) ([]*models.ScrapedPerformer, error) {
	var ret []*models.ScrapedPerformer
	for _, c := range content {
		if c == nil {
			continue
		}
		switch p := c.(type) {
		case *models.ScrapedPerformer:
			ret = append(ret, p)
		case models.ScrapedPerformer:
			ret = append(ret, &p)
		default:
			return nil, fmt.Errorf("%w: cannot turn ScrapedContent into ScrapedPerformer", models.ErrConversion)
		}
	}
	return ret, nil
}
func marshalScrapedPerformers ( content [ ] models . ScrapedContent ) ( [ ] * models . ScrapedPerformer , error ) { var ret [ ] * models . ScrapedPerformer for _ , c := range content { if c == nil { continue } switch p := c . ( type ) { case * models . ScrapedPerformer : ret = append ( ret , p ) case models . ScrapedPerformer : ret = append ( ret , & p ) default : return nil , fmt . Errorf ( " " , models . ErrConversion ) } } return ret , nil }
marshalScrapedPerformers converts ScrapedContent into ScrapedPerformer.
marshalScrapedPerformers converts ScrapedContent into ScrapedPerformer .
// graphql schema requires performers to be non-nil