Map<String, Object?> toMap() { return { 'dbName': dbName, 'changes': changes.map((c) => c.toMap()).toList(), }; }