satisfies method
Whether condition holds for this resolution.
Implementation
bool satisfies(PatchbaySnapshotCondition condition, Object? expected) =>
switch (condition) {
PatchbaySnapshotCondition.exists => found,
// `notAnObject` is a path that contradicts the snapshot, not a field
// that is absent; see [PatchbaySnapshotCondition.absent].
PatchbaySnapshotCondition.absent =>
miss == PatchbaySnapshotMiss.missingKey ||
miss == PatchbaySnapshotMiss.nullValue,
PatchbaySnapshotCondition.equals =>
found && patchbayJsonEquals(value, expected),
};