Converts this table info to a map representation.
Map<String, dynamic> toMap() { return { 'name': name, 'columns': columns.map((c) => c.toMap()).toList(), if (checks.isNotEmpty) 'checks': checks, }; }