Skip to content

Commit 44b7d6e

Browse files
committed
Don't use RequiredPick constructor in readme
1 parent 0616c94 commit 44b7d6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This example demonstrates parsing of an HTTP response using `deep_pick`. You can
4949
5050
5151
// Parse a full object using a fromPick factory constructor
52-
final CounterApiStats stats = CounterApiStats.fromPick(RequiredPick(json));
52+
final CounterApiStats stats = CounterApiStats.fromPick(pick(json).required());
5353
5454
5555
// Parse lists with a fromPick constructor

0 commit comments

Comments
 (0)