patchObject method
Updates an existing JSON object by merging patch into the stored value.
Only the keys present in patch are overwritten; all other keys survive.
Implementation
Future<void> patchObject(String key, Map<String, dynamic> patch) async {
await _assertExists(key);
final existing = await getObject(key) ?? {};
existing.addAll(patch);
await setObject(key, existing);
}