toListMap static method

List<Map<String, dynamic>> toListMap(
  1. List<ModelLess> list
)

Implementation

static List<Map<String, dynamic>> toListMap(List<ModelLess> list) {
  List<Map<String, dynamic>> res = [];
  for (var l in list) {
    res.add(l.toMap());
  }
  return res;
}