getMap method
Get a table map from the local dataset.
Implementation
Map<String, dynamic> getMap(String table) {
  if (!tables.contains(table)) throw 'Unknown table: $table';
  return (getRecords(table)..removeWhere((_, record) => record.isDeleted))
      .map((key, record) => MapEntry(key, record.value));
}