toMap method

Map<String, dynamic> toMap()

Converts the schema snapshot to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    'dialect': dialect,
    'tables': {
      for (final entry in tables.entries) entry.key: entry.value.toMap(),
    },
    'indexes': {
      for (final entry in indexes.entries) entry.key: entry.value.toMap(),
    },
  };
}