fromJson method

ItemListModel fromJson(
  1. dynamic data
)

Implementation

ItemListModel fromJson(data) {
  data.forEach((v) => list.add(ItemModel().fromJson(v, keyName: keyName)));
  return this;
}