Skip to content

Commit 1368aa5

Browse files
authored
Merge pull request #85 from frank06/patch-1
Call toJson() on resourceObject
2 parents a1f1361 + 00d97cd commit 1368aa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
custom: https://www.paypal.me/f3ath
1+
custom: "https://www.paypal.me/f3ath"

lib/src/document/resource_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ResourceData extends PrimaryData {
3232
@override
3333
Map<String, Object> toJson() => {
3434
...super.toJson(),
35-
'data': resourceObject,
35+
'data': resourceObject.toJson(),
3636
};
3737

3838
Resource unwrap() => resourceObject?.unwrap();

0 commit comments

Comments
 (0)