From 9a3662c497116edfe30c52a72ba7afd1242b865a Mon Sep 17 00:00:00 2001 From: Joshua Mayanja <63024937+drexhacker@users.noreply.github.com> Date: Sat, 16 Aug 2025 14:31:41 +0300 Subject: [PATCH] Update object_id.dart --- lib/models/object_id.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/object_id.dart b/lib/models/object_id.dart index aa0e74e..559d46f 100644 --- a/lib/models/object_id.dart +++ b/lib/models/object_id.dart @@ -19,5 +19,5 @@ /// final createdAt = $(document, 'createdAt'); // Returns document['createdAt'] or document['$createdAt'] /// ``` Object? $(map, string) { - return map[string] ?? map['\$$string']; + return map['\$$string'] ?? map[string]; }