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

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

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