List<Map<String, dynamic>> serializeColumns(List list)

convert tableColumns into List of Map

Source

static List<Map<String, dynamic>> serializeColumns(List list) {
  var rslts = <Map<String, dynamic>>[];
  for (Object m in list) {
    if (m is Map<String, dynamic>) {
      rslts.add(m);
    } else if (m is TableColumn) {
      rslts.add(m.getData());
    }
  }
  return rslts;
}