asMap method Null safety

Map<String, dynamic> asMap()

Returns portable representation of this table.

Implementation

Map<String, dynamic> asMap() {
  return {
    "name": name,
    "columns": columns.map((c) => c.asMap()).toList(),
    "unique": uniqueColumnSet
  };
}