func (r *DataConverter) ToPayloads(values ...interface{}) (*commonpb.Payloads, error) {
	for _, v := range values {
		if aggregated, ok := v.(*commonpb.Payloads); ok {
			return aggregated, nil
		}
	}
	return r.fallback.ToPayloads(values...)
}
ToPayloads converts a list of values.
package protocol
import (
	commonpb "go.temporal.io/api/common/v1"
	"go.temporal.io/sdk/converter"
)
type (
	DataConverter struct {
		fallback converter.DataConverter
	}
)
func NewDataConverter(fallback converter.DataConverter) converter.DataConverter {
	return &DataConverter{fallback: fallback}
}