populate static method
Implementation
static populate(List? target, String? listType, List from, TypeContext? context) {
var elementType = getElementType(listType);
List list = from;
list.forEach((x) {
var item = convert(x, elementType, context);
target!.add(item);
});
return target;
}