From d1cfc133f3c2861b0b8cbced9028e631747db789 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 30 Jan 2020 23:11:38 -0800 Subject: [PATCH 1/2] Update FUNDING.yml --- .github/FUNDING.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 7ce5353..ce8301e 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -custom: https://www.paypal.me/f3ath +custom: "https://www.paypal.me/f3ath" From 00d97cdf501a0d4f1177cd9ad31e966a13dd504d Mon Sep 17 00:00:00 2001 From: Frank Treacy Date: Thu, 5 Mar 2020 14:23:57 -0300 Subject: [PATCH 2/2] Call toJson() on resourceObject PR following https://github.com/f3ath/json-api-dart/issues/83 --- lib/src/document/resource_data.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/document/resource_data.dart b/lib/src/document/resource_data.dart index 2fc5817..5bccc47 100644 --- a/lib/src/document/resource_data.dart +++ b/lib/src/document/resource_data.dart @@ -32,7 +32,7 @@ class ResourceData extends PrimaryData { @override Map toJson() => { ...super.toJson(), - 'data': resourceObject, + 'data': resourceObject.toJson(), }; Resource unwrap() => resourceObject?.unwrap();