factory for a list of samples, given as maps or JSON strings.
static List<Sample> collect(List<dynamic> list) => parseObjects(list, factory);