dataModelFromJson method
void
dataModelFromJson(
- dynamic data,
- dynamic model, [
- dynamic dataController
Implementation
void dataModelFromJson(data, model,[dataController]){
List repData = data['data'];
List list = [];
repData.forEach((json) => list.add(model.from(json)));
inDataController.add(list);
}