toMapList method

List<Model> toMapList({
  1. List<String>? columns,
  2. bool includeMissingValue = false,
})

Convert to model list

Implementation

List<Model> toMapList(
    {List<String>? columns, bool includeMissingValue = false}) {
  return map((e) =>
          e.toMap(columns: columns, includeMissingValue: includeMissingValue))
      .toList();
}