toMap method

Map<String, dynamic> toMap()

Converts this to a map representation.

Implementation

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