dataModelListFromJson method

List dataModelListFromJson(
  1. dynamic data,
  2. dynamic model, [
  3. dynamic dataController
])

Implementation

List dataModelListFromJson(data, model,[dataController]){

  List repData = data;

  List list = [];

  repData.forEach((json) => list.add(model.from(json)));

  return list;
}