Converts this to a map representation.
Map<String, dynamic> toMap() { return { 'table': table.toMap(), if (indexes.isNotEmpty) 'indexes': indexes.map((i) => i.toMap()).toList(), }; }